IE proxy settings extension

Mads Kiilerich mads at
Thu Nov 4 07:26:14 CDT 2010

On 11/03/2010 10:46 PM, Steve Borho wrote:
> Attached is an extension that I've just written with the intention of
> automatically reading proxy settings from the Internet Explorer's
> registry configuration.   In many corporate environments, proxies are
> configured to be discovered by DHCP and friends.  If the user enables
> this extension, Mercurial will also autodetect these settings and
> stuff "just works".
> I've run it on my Windows machines, but I do not use proxies so it
> doesn't do much. I'm hoping some people who do use proxies can test
> this for me and give me some feedback on what works and what doesn't.
> You can either run this as a standalone script, or enable it as an
> extension and try some command line hg commands.

Here be dragons...

I had to do something like what is attached in order to make proxy 
detection work reliably on windows in corporate environments. It is so 
big and ugly that I don't think it belongs in core Mercurial, but an 
extension would be fine.

Feel free to use the attached code, but please let me know if you have 
comments or fixes to it.

(The next problem once the proxy has been detected is to get transparent 
proxy authentication with NTLM or Negotiate...)

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
URL: <>

More information about the Mercurial-devel mailing list