I found in debugger that when I am using static WebRequest.DefaultWebProxy and there is no proxy address specified in the config file,
IWebProxy.GetProxy returns the same address, as it was passed.
IWebProxy iDefaultWebProxy = WebRequest.DefaultWebProxy;
Uri uriProxy = iDefaultWebProxy.GetProxy(
I haven't seen this in documentation, but the thread confirms the behavior.
new Uri(ws.Url));
if (sProxyUrl == ws.Url)
{//no proxy specified
}
posted @ Wednesday, March 07, 2007 3:42 PM