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.

Author sonderblade
Recipients
Date 2005-11-28.16:39:06
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Currently, urllib.urlopen() "kind of" handles HTTP
authentication. You simply write something like this:

urllib.urlopen("http://foo:bar@www.moo.com")

And it works like a charm. EXCEPT when the
username/password is wrong. Then you get the
FancyURLopener.prompt_user_passwd()-prompt asking you
for your username and password. I think that behaviour
is extremely illogical and annoying because it forces
you to add more code just to circumvent the odd default
behaviour.

I would be MUCH happer if, instead of the prompt, you
get an exception or the 401 Unauthorized error page
returned.
History
Date User Action Args
2008-01-20 09:58:17adminlinkissue1368368 messages
2008-01-20 09:58:17admincreate