chelnak
5/11/2015 - 3:49 PM

Invoke-RestMethod

Invoke-RestMethod

$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Accept", "application/json")
$headers.Add("Content-Type", "application/json")

$url = "whatever.com" 

$r = Invoke-RestMethod $url -Headers $headers