-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugNeeds-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.Resolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or more
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)
Line 901 in 6055a82
webProxy.BypassProxyOnLocal = false; |
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
Metadata
Metadata
Assignees
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugNeeds-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.Resolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or more