-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Description
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
- Output of Proxy Server Hostname
- Error: "This operation is not supported for a relative URI."
- Output of Proxy Server Hostname
Actual behavior
- Output of Proxy Server Hostname
- Error: "This operation is not supported for a relative URI."
- "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 )