We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
When we use the -Proxy parameter in Invoke-WebRequest and Invoke-RestMethod BypassProxyOnLocal is always set to false (the default value)
-Proxy
BypassProxyOnLocal
false
PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs
Line 901 in 6055a82
The only way I found to set it to true is:
true
$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)
No response
Summary of the new feature / enhancement
When we use the
-Proxyparameter in Invoke-WebRequest and Invoke-RestMethodBypassProxyOnLocalis always set tofalse(the default value)PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs
Line 901 in 6055a82
The only way I found to set it to
trueis:Is this the desired behaviour?
Opened as requested by @iSazonov #19173 (comment)
Proposed technical implementation details (optional)
No response