[ python-Bugs-872736 ] Python 2.3.3 urllib proxy support fails

SourceForge.net noreply at sourceforge.net
Wed Jan 7 19:20:41 EST 2004


Bugs item #872736, was opened at 2004-01-07 19:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=872736&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Eric Johnson (eggsy)
Assigned to: Nobody/Anonymous (nobody)
Summary: Python 2.3.3 urllib proxy support fails

Initial Comment:
Using Python 2.3.3 on Win2K and Win98 the urllib module
does not seem to support proxies as described in the
documentation.

I have the http_proxy environment variable set and
urllib2.urlopen can successfully access the web via the
proxy.
Trying urllib.urlopen results in a
IOError: [Errno socket error] (7, 'getaddrinfo failed')
exception which suggests that it is not using the proxy.
This occurs both with an explicit proxy defined and
when using the environment variable.

See attached file for an example script.

I could not see any reference to proxies in the urllib
test script so I wonder whether this has been tested.

I have not (yet) tried to investigate why this does not
work.

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

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



More information about the Python-bugs-list mailing list