Closed pspete closed 5 years ago
Check for [System.Net.Http.HttpRequestException] only works for PSCore. Invoke-WebRequest in Powershell 5 raises a [Net.WebException]. Invoke-PASRequest updated to handle both PSCore & PowerShell scenarios.
[System.Net.Http.HttpRequestException]
Invoke-WebRequest
[Net.WebException]
Invoke-PASRequest
Summary
Check for
[System.Net.Http.HttpRequestException]
only works for PSCore.Invoke-WebRequest
in Powershell 5 raises a[Net.WebException]
.Invoke-PASRequest
updated to handle both PSCore & PowerShell scenarios.