This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Python 2.3.3 urllib proxy support fails
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: eggsy, georg.brandl, jimjjewett, sf-robot
Priority: normal Keywords:

Created on 2004-01-08 00:20 by eggsy, last changed 2022-04-11 14:56 by admin. This issue is now closed.

File name Uploaded Description Edit eggsy, 2004-01-08 00:20 Sample script showing error
Messages (4)
msg19575 - (view) Author: Eric Johnson (eggsy) Date: 2004-01-08 00:20
Using Python 2.3.3 on Win2K and Win98 the urllib module
does not seem to support proxies as described in the

I have the http_proxy environment variable set and
urllib2.urlopen can successfully access the web via the
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
msg19576 - (view) Author: Jim Jewett (jimjjewett) Date: 2004-01-08 15:33
Logged In: YES 

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 
msg19577 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-02-20 20:03
Logged In: YES 

Proxy support has recently been improved in urllib. Can you
test whether it works now?
msg19578 - (view) Author: SourceForge Robot (sf-robot) Date: 2006-03-07 03:28
Logged In: YES 

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Date User Action Args
2022-04-11 14:56:02adminsetgithub: 39782
2004-01-08 00:20:41eggsycreate