[Python-bugs-list] [ python-Bugs-432501 ] Problem with urllib and proxies / Win32

noreply@sourceforge.net noreply@sourceforge.net
Tue, 12 Jun 2001 23:17:15 -0700


Bugs item #432501, was updated on 2001-06-12 11:48
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=432501&group_id=5470

Category: Windows
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: M.-A. Lemburg (lemburg)
Assigned to: Mark Hammond (mhammond)
Summary: Problem with urllib and proxies / Win32

Initial Comment:
There's a problem with urllib on Windows. Here's a
quote which relates to the problem:

"""
In the newest version of the urllib.   They added a
section which pulls the http web_proxy from the
windows NT registry.         Unfortunately they did not
think to check for 127.0.0.1 and remove it from
the proxy list and they also did not handle (no proxy
addresses).  As a result the new library reads the
proxy settings from the Windows NT Registry for IE and
attempts to use them.
"""

Any thoughts on how to solve this ?


----------------------------------------------------------------------

>Comment By: Mark Hammond (mhammond)
Date: 2001-06-12 23:17

Message:
Logged In: YES 
user_id=14198

This is not a problem with the win32 proxy detection code, 
but with urllib in general.

urllib itself does not handle the concept of "proxy exclude 
list", and nor does it handle the localhost case - if a 
proxy is configured, it uses it.

So either you are after an enhancement to urllib to allow 
certain addresses to bypass the proxy, or a technique to 
allow the registry to be ignored.  I believe the latter can 
be handled by setting "ignored_proxy=something" in the 
environment.

Can you clarify exactly what you want here?  If it is the 
urllib enhancement then I am not the best person for this - 
I don't have a proxy server available, and don't have much 
code that uses urllib.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=432501&group_id=5470