Skip to content

WebCmdlets Investigation on the usage of webProxy.BypassProxyOnLocal #19203

Closed
@CarloToso

Description

@CarloToso

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugNeeds-TriageThe issue is new and needs to be triaged by a work group.Resolution-No ActivityIssue has had no activity for 6 months or more

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions