Bugs item #856047, was opened at 2003-12-08 05:15 Message generated for change (Comment added) made by tmaas You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=856047&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Donovan Baarda (abo) Assigned to: Nobody/Anonymous (nobody) Summary: urllib.py does not use "no_proxy"; Initial Comment: urllib.py uses "*_proxy" variables to identify proxies to use in the "getproxies()" function. However, it does not use the corresponding "no_proxy" variable in the "proxy_bypass()" method. This affects any platform that can use "*_proxy" environment variables to specify proxies. This includes win32, which will use environment variables before the registry if they are defined. On win32 this causes the confusing behaviour of using the registry for "proxy_bypass()" checking when "*_proxy" environment variables are used to identify the proxies. Attached is a patch against python-2.3.2 that adds support for "no_proxy". Note that win32 will correctly favor using "no_proxy" over using the registry if any "*_proxy" variables are defined. ---------------------------------------------------------------------- Comment By: Till Maas (tmaas) Date: 2007-05-08 22:15 Message: Logged In: YES user_id=60606 Originator: NO So, it is two years later now, will this ever be fixed? Is there a way to disable to use of proxies completely without having to change the enviroment when http_proxy is set? It is a bad user experience, when one is only able to change a proxy but not to disable the use of proxies completely. ---------------------------------------------------------------------- Comment By: Donovan Baarda (abo) Date: 2005-02-19 06:21 Message: Logged In: YES user_id=10273 This bug is still present in current versions of Python. The biggest problem with this patch is it only addresses urllib, when urllib2 has the same problem. I have been meaning to put together a new patch that fixes both urllib and urllib2, but haven't had time or external motivation yet. ---------------------------------------------------------------------- Comment By: Enrico Scholz (ensc) Date: 2005-02-18 12:13 Message: Logged In: YES user_id=10773 What is the state of this bug? Is something wrong with the patch that it was not applied yet? It is something annoying to unset $http_proxy manually for some programs. ---------------------------------------------------------------------- Comment By: Donovan Baarda (abo) Date: 2003-12-08 05:27 Message: Logged In: YES user_id=10273 Whups... failed to attach patch. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=856047&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com