Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

WebCmdlets Investigation on the usage of webProxy.BypassProxyOnLocal #19203

Copy link
Copy link
@CarloToso

Description

@CarloToso
Issue body actions

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

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.