I want to create a webrequest with the current proxy information. I've tried several routines to get the current proxy information but I'm not getting what I expected.
On this machine I have my connection proxy set to "No Proxy" (Firefox - Tools/Options/connection settings). I do have data in the "Manual Proxy Configuration", but with the "No Proxy" option selected the manual proxy information is grayed out. I would expect in this configuration for the proxy to be null. However, when I use GetSystemWebProxy or similar functions it is returning the manual proxy information, not null as I would expect. What is the proper "GetTheProxy()" routine in the example below?
public HttpWebRequest GetWebRequest(string url)
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
IWebProxy theProxy = GetTheProxy();
req.Proxy = theProxy;
req.Timeout = 10000;
public iWebProxy GetTheProxy()