Security updates were issued by Debian ([DSA 4537-1] file-roller security update)

Tagged with: , ,

Security updates were issued by Debian ([DSA 4534-1] golang-1.11 security update, [DSA 4535-1] e2fsprogs security update, [DSA 4536-1] exim4 security update)

Tagged with: , ,

Security updates were issued by CentOS (CEBA-2019:2871 CentOS 7 tzdata BugFix Update, CESA-2019:2836 Important CentOS 7 dovecot Security Update)

Tagged with: , ,

Security updates were issued by Debian ([DSA 4533-1] lemonldap-ng security update)

Tagged with: , ,

Security updates were issued by Debian ([DSA 4531-1] linux security update, [DSA 4532-1] spip security update) and Release for CentOS Linux 8 and CentOS Streams.

Tagged with: , ,

When working in PowerShell under windows, naively you do not have curl. And if you are looking to work with REST most of the examples are created for use with curl.
Luckily PowerShell has integrated command called Invoke-RestMethod.
Here are few examples that cover the basics.
Simple GET example

$response = Invoke-RestMethod 'http://example.com/api/data'

GET with custom headers

$message = 'Message'
$secret = 'secret'
$hmacsha = New-Object System.Security.Cryptography.HMACSHA256
$hmacsha.key = [Text.Encoding]::UTF8.GetBytes($secret)
$signature = $hmacsha.ComputeHash([Text.Encoding]::UTF8.GetBytes($message))
$encb64=[System.Convert]::ToBase64String($signature)
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("X-DATE", '9/29/2019')
$headers.Add("X-SIGNATURE", $encb64)
$headers.Add("X-API-KEY", 'testuser')

$response = Invoke-RestMethod 'http://example.com/api/data/1' -Headers $headers

PUT/POST example

$person = @{
    first='joe'
    lastname='doe'
}
$json = $person | ConvertTo-Json
$response = Invoke-RestMethod 'http://example.com/api/data/1' -Method Put -Body $json -ContentType 'application/json'

DELETE example

$response = Invoke-RestMethod 'http://example.com/api/data/1' -Method Delete

The documentation is extensive and available here: Invoke-RestMethod.

Tagged with: , , , ,

Security updates were issued by Debian ([DSA 4529-1] php7.0 security update, [DSA 4530-1] expat security update)

Tagged with: , ,

Security updates were issued by Debian ([DSA 4526-1] opendmarc security update, [DSA 4527-1] php7.3 security update, [DSA 4528-1] bird security update)

Tagged with: , ,

Security updates were issued by Debian ([DSA 4525-1] ibus security update) CentOS (CESA-2019:2773 Important CentOS 7 thunderbird Security Update, CEBA-2019:2610 CentOS 7 corosync BugFix Update, CEBA-2019:2614 CentOS 7 firewalld BugFix Update, CESA-2019:2586 Important CentOS 7 ghostscript Security Update, CEBA-2019:2598 CentOS 7 gnome-settings-daemon BugFix Update, CEBA-2019:2596 CentOS 7 java-11-openjdk BugFix Update, CEBA-2019:2357 CentOS 7 java-1.7.0-openjdk BugFix Update, CEBA-2019:2597 CentOS 7 java-1.8.0-openjdk BugFix Update, CESA-2019:2606 Important CentOS 7 kdelibs Security Update, CESA-2019:2606 Important CentOS 7 kde-settings Security Update, CEBA-2019:2599 CentOS 7 krb5 BugFix Update, CEBA-2019:2358 CentOS 7 libguestfs BugFix Update, CEBA-2019:2679 CentOS 7 libvirt BugFix Update, CEBA-2019:2601 CentOS 7 NetworkManager BugFix Update, CEBA-2019:2608 CentOS 7 pacemaker BugFix Update, CESA-2019:2571 Important CentOS 7 pango Security Update, CEBA-2019:2604 CentOS 7 pcs BugFix Update, CEBA-2019:2359 CentOS 7 polkit BugFix Update, CESA-2019:2607 Low CentOS 7 qemu-kvm Security Update, CEBA-2019:2603 CentOS 7 rear BugFix Update, CEBA-2019:2615 CentOS 7 resource-agents BugFix Update, CEBA-2019:2501 CentOS 7 rsyslog BugFix Update, CEBA-2019:2355 CentOS 7 selinux-policy BugFix Update, CEBA-2019:2612 CentOS 7 sg3_utils BugFix Update, CEBA-2019:2602 CentOS 7 sos BugFix Update, CEBA-2019:2564 CentOS 7 subscription-manager BugFix Update, CEBA-2019:2356 CentOS 7 systemd BugFix Update, CEBA-2019:2605 CentOS 7 tuned BugFix Update, CEBA-2019:2139 CentOS 7 open-vm-tools BugFix Update, CESA-2019:2258 Moderate CentOS 7 http-parser Security Update, CESA-2019:2343 Moderate CentOS 7 httpd Security Update, CEBA-2019:2227 CentOS 7 grubby BugFix Update, CEEA-2019:2120 CentOS 7 mesa Enhancement Update, CEBA-2019:2107 CentOS 7 llvm-private BugFix Update, CESA-2019:2600 Important CentOS 7 kernel Security Update, CEBA-2019:2023 CentOS 7 efivar BugFix Update, CESA-2019:2101 Low CentOS 7 exiv2 Security Update, CEBA-2019:2107 CentOS 7 llvm-private BugFix Update, CESA-2019:2729 Critical CentOS 7 firefox Security Update)

Tagged with: , ,

Security updates were issued by CentOS (CESA-2019:2694 Critical CentOS 6 firefox Security Update, CESA-2019:2736 Important CentOS 6 kernel Security Update)

Tagged with: , ,