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.

classification
Title: allow proxy server authentication with pimp
Type: Stage:
Components: macOS Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: jackjansen Nosy List: astraw, jackjansen
Priority: normal Keywords: patch

Created on 2003-03-03 07:38 by astraw, last changed 2022-04-10 16:07 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
pimp_proxy.patch astraw, 2003-03-03 07:41 patch for pimp.py
Messages (2)
msg42943 - (view) Author: Andrew Straw (astraw) Date: 2003-03-03 07:38
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.
msg42944 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-03-18 14:26
Logged In: YES 
user_id=45365

Checked into CVS.
History
Date User Action Args
2022-04-10 16:07:17adminsetgithub: 38084
2003-03-03 07:38:30astrawcreate