[Patches] [ python-Patches-696392 ] allow proxy server authentication with pimp

SourceForge.net noreply@sourceforge.net
Sun, 02 Mar 2003 23:38:30 -0800


Patches item #696392, was opened at 2003-03-03 07: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: Open
Resolution: None
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.

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

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