Message60841
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. |
|
Date |
User |
Action |
Args |
2008-01-20 09:58:17 | admin | link | issue1368368 messages |
2008-01-20 09:58:17 | admin | create | |
|