Skip to content

WebCmdlets Investigation on the usage of webProxy.BypassProxyOnLocal #19203

Closed

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 Ilya (@iSazonov) #19173 (comment)

Proposed technical implementation details (optional)

No response

Activity

  1. added
    Issue-Enhancementthe issue is more of a feature request than a bug
    Needs-TriageThe issue is new and needs to be triaged by a work group.
    on Feb 23, 2023
  2. iSazonov commented on Feb 24, 2023

    @iSazonov
    Collaborator

    Perhaps it was used in Windows PowerShell. But now BypassProxyOnLocal is dead code for years.

    There are two options:

    • mark the property as Obsolete
    • try to implement the functionality in WebProxy class (Then we need a custom list of local addresses)
  3. CarloToso commented on May 9, 2023

    @CarloToso
    ContributorAuthor

    I think this issue will be fixed by #19609

  4. microsoft-github-policy-service commented on Nov 15, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  5. microsoft-github-policy-service commented on Nov 15, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  6. microsoft-github-policy-service commented on Nov 15, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  7. microsoft-github-policy-service commented on Nov 22, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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