8000 System.Net.WebClient.Proxy.GetProxy fails after bad/relative URI · Issue #3040 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content
System.Net.WebClient.Proxy.GetProxy fails after bad/relative URI #3040
@MysticRyuujin

Description

@MysticRyuujin

Steps to reproduce

(new-object System.Net.WebClient).Proxy.GetProxy("http://www.msn.com").Host
(new-object System.Net.WebClient).Proxy.GetProxy("www.msn.com").Host
(new-object System.Net.WebClient).Proxy.GetProxy("http://www.msn.com").Host

Expected behavior

  1. Output of Proxy Server Hostname
  2. Error: "This operation is not supported for a relative URI."
  3. Output of Proxy Server Hostname

Actual behavior

  1. Output of Proxy Server Hostname
  2. Error: "This operation is not supported for a relative URI."
  3. "www.msn.com"

This output of the URI continues until I close/reopen PowerShell

Environment data

$PSVersionTable:
Name Value


PSVersion 5.0.10586.117
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.10586.117
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

$StackTrace:
PS H:> $StackTrace
at System.Uri.get_IsLoopback()
at System.Net.WebProxy.IsBypassedManual(Uri host)
at System.Net.WebProxy.GetProxy(Uri destination)
at CallSite.Target(Closure , CallSite , Object , String )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-ExternalThe issue is caused by external component(s).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0