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: Parsing userID:passwd in http_proxy
Type: enhancement Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: marcinjk, sjoerd
Priority: normal Keywords:

Created on 2004-01-22 20:55 by marcinjk, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg54096 - (view) Author: Marcin J. Kraszewski (marcinjk) Date: 2004-01-22 20:55
When using yum (an automatic updater) on Fedora Core 1,
I am trying to take advantage of an http_proxy
variable. The problem is that our proxy userIDs contain
an "@" character, and when the variable has the
following format:
http_proxy=http://userID@my_domain:passwd@my_proxy:8080/
I am getting the following error:
[Errno 7] HTTP Error (InvalidURL): nonnumeric port:
'passwd@my_proxy:8080'

Would it be possible to change the way 'userID:passwd'
string is parsed? Maybe by allowing a delimiter around
that string?
Thank you very much for your co-opeartion.

Best regards

Marcin
msg54097 - (view) Author: Sjoerd Mullender (sjoerd) * (Python committer) Date: 2004-01-22 21:49
Logged In: YES 
user_id=43607

Does it work to encode the @ as %40, so making it
http_proxy=http://userID%40my_domain:passwd@my_proxy:8080/?

In that case I don't think this needs to be implemented.
msg54098 - (view) Author: Marcin J. Kraszewski (marcinjk) Date: 2004-01-22 22:12
Logged In: YES 
user_id=957856

Yes, it works with %40. That is great. Thank you very much
for your help.
Best regards
Marcin
msg54099 - (view) Author: Sjoerd Mullender (sjoerd) * (Python committer) Date: 2004-01-23 08:55
Logged In: YES 
user_id=43607

Rejected since there is a perfectly working solution.
History
Date User Action Args
2022-04-11 14:56:02adminsetgithub: 39857
2004-01-22 20:55:35marcinjkcreate