Security updates were issued by Debian ([DSA 4509-2] subversion update) CentOS (CESA-2019:2829 Important CentOS 7 kernel Security Update)

Tagged with: , ,

Security updates were issued by Debian ([DSA 4539-1] openssl security update, [DSA 4540-1] openssl1.0 security update)

Tagged with: , ,

Security updates were issued by CentOS (CEBA-2019:2871 CentOS 6 tzdata BugFix Update, CESA-2019:2885 Important CentOS 6 dovecot Security Update, CESA-2019:2892 Important CentOS 6 qemu-kvm Security Update, CEBA-2019:2891 CentOS 6 java-1.7.0-openjdk BugFix Update, CESA-2019:2863 Important CentOS 6 kernel Security Update)

Tagged with: , ,

Security updates were issued by Debian ([DSA 4538-1] wpa security update)

Tagged with: , ,

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: , , , ,