powershell http get not use proxy powershell http get not use proxy powershell powershell

powershell http get not use proxy


According to the documentation you have to set the proxy to a blank proxy instance. Try this:

$url = "https://10.10.10.10/check"$webClient = New-Object System.Net.WebClient$webClient.Proxy = [System.Net.GlobalProxySelection]::GetEmptyWebProxy()$output = $webClient.DownloadString($url)