[Mono-dev] [PATCH] Read System.Net proxy server address from environment

Michael Hutchinson m.j.hutchinson at gmail.com
Sun Oct 30 19:44:43 EST 2005

This minor patch enables the use of the "usesystemdefault" parameter
of the defaultProxy in application/machine config files, to read the
default System.Net proxy server address from environment. This means
that applications that use HttpWebRequests etc will use a defined
proxy server even if the developer has not explicitly added support.

The proxy address will be from the "http_proxy" environment variable
commonly used for this purpose. In .NET, the Internet Explorer
settings are used. Although more information about an HTTP proxy could
potentially be obtained from GConf or Mozilla or other sources, this
way is simple, reliable and introduces no dependencies. However, the
environment variable will not usually be set on Win32.

The second patch fixes the machine.config settings to their defaults.

I have tested this patch with MonoDevelop's new repository feature.
However, there is a fixme; I'm not quite sure of the precendence of
some of the settings, as I could not find adequate documentation.

Please review/approve, and I will commit.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: proxyClass.patch
Type: text/x-patch
Size: 1558 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051031/a3cffa73/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: proxyConfig.patch
Type: text/x-patch
Size: 1594 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051031/a3cffa73/attachment-0001.bin 

More information about the Mono-devel-list mailing list