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

SourceForge.net noreply at sourceforge.net
Mon Feb 20 21:03:22 CET 2006


Bugs item #872736, was opened at 2004-01-08 00:20
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=872736&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.3
>Status: Pending
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.

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

>Comment By: Georg Brandl (gbrandl)
Date: 2006-02-20 20:03

Message:
Logged In: YES 
user_id=849994

Proxy support has recently been improved in urllib. Can you
test whether it works now?

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

Comment By: Jim Jewett (jimjjewett)
Date: 2004-01-08 15:33

Message:
Logged In: YES 
user_id=764593

Do you need to authenticate to your proxy?

The default getpass will fail instead of asking for a password if 
it thinks there is an eavesdropper - and idle counts as an 
eavesdropper.


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

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