Geeks With Blogs

News My Blog has been MOVED to https://mfreidge.wordpress.com
Michael Freidgeim's OLD Blog My Blog has been MOVED to https://mfreidge.wordpress.com

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 on Wednesday, March 7, 2007 3:42 PM ASP.NET | Back to top


Comments on this post: If DefaultProxy address is not specified in config file, GetProxy returns unchanged URL

# rExplicitely specify Default user credentials for Proxy Server.
Requesting Gravatar...
I've created common function to set web proxy credentials SetDefaultWebProxyCredentialsIfRequired(aws);
See http://geekswithblogs.net/mnf/archive/2007/03/09/108325.aspx

Left by Michael Freidgeim on Mar 09, 2007 12:44 PM

# re: If DefaultProxy address is not specified in config file, GetProxy returns unchanged URL
Requesting Gravatar...
Hey, that was interesting,

um so simple coe and I like how it works properly

Thanks for writing, most people don't bother.
Left by web development company on Aug 28, 2009 6:45 AM

Your comment:
 (will show your gravatar)


Copyright © Michael Freidgeim | Powered by: GeeksWithBlogs.net