A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-December/041484.html below:

[Python-Dev] urllib2 doesn't grok URLs w/ user/passwd

[Python-Dev] urllib2 doesn't grok URLs w/ user/passwd [Python-Dev] urllib2 doesn't grok URLs w/ user/passwdSkip Montanaro skip at pobox.com
Tue Dec 30 10:03:55 EST 2003
SF seems to be down for some unscheduled reason.  Posting here just so I
don't completely forget about it should I exit my web browser before SF is
back up...

urllib2.urlopen("http://foo@www.python.org/") fails (at least in part)
because it fails to separate the username and password from the hostname.
Trying to open http://foo:bar@www.python.org/ reveals other shortcomings in
its url parsing.  It seems to me the syntactic bits shouldn't be difficult
to resolve using urllib.spluituser().  I'm much less clear what to do with
the username and password once they've been separated from the hostname.

Skip


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4