urllib with user/password

Gilles Lenfant glenfant.nospam at bigfoot.com
Sat Apr 7 17:52:48 EDT 2001


Hi,

I got a robot that fetches with urllib.urlopen() a user/password protected
page.
As some URLs reply with code 401 (basic authentication), I'm prompted for
the user/password.

Is there a workaround for storing the user/password in the script and go
through the request without prompting ?

Thanks in advance

Gilles






More information about the Python-list mailing list