[Patches] [ python-Patches-696392 ] allow proxy server authentication with pimp
SourceForge.net
noreply@sourceforge.net
Tue, 18 Mar 2003 06:26:17 -0800
Patches item #696392, was opened at 2003-03-03 08:38
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=696392&group_id=5470
Category: Macintosh
Group: Python 2.3
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Andrew Straw (astraw)
Assigned to: Jack Jansen (jackjansen)
Summary: allow proxy server authentication with pimp
Initial Comment:
The urllib module does not support http proxy authentication with passwords. The urllib2 module does, so I changed pimp.py to use urllib2. I have tested the patch below after setting my http_proxy environment variable to the form "http://user:pass@proxy.com:1234".
It may be possible to remove the dependency on urllib entirely by sustituting a urllib2 work-alike for a call to urllib.url2pathname().
This may affect the exception(s) raised when unable to connect. For example, PackageManager.py catches an IOError, but I believe urllib2 raises a socket.gaierror when unable to resolve the name of the URL. I have not resolved this issue.
----------------------------------------------------------------------
>Comment By: Jack Jansen (jackjansen)
Date: 2003-03-18 15:26
Message:
Logged In: YES
user_id=45365
Checked into CVS.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=696392&group_id=5470