Closed
Description
Summary of the new feature / enhancement
When we use the -Proxy
parameter in Invoke-WebRequest and Invoke-RestMethod BypassProxyOnLocal
is always set to false
(the default value)
The only way I found to set it to true
is:
$request = Invoke-WebRequest http://example.com -SessionVariable session
$proxy = [System.Net.WebProxy]::New()
$proxy.BypassProxyOnLocal = $true
$session.Proxy = $proxy
Is this the desired behaviour?
Opened as requested by @iSazonov #19173 (comment)
Proposed technical implementation details (optional)
No response