HTTP authentication

Simo Salminen look at sig.invalid
Mon Jun 24 04:57:47 EDT 2002


* Peter Hansen [Sun, 23 Jun 2002 21:45:35 -0400]
> I think another solution is just to specify the username and 
> password in the URL like so:
> 
>  ref = urllib.urlopen("http://username:password@host.domain/path/file")
> 

and if this does not work, the site might be using digest-authentication
instead of basic. then one can use urllib2 and HTTPDigestAuthHandler (look
urllib2.py __doc__ for mor info).

-- 
simo <dot> salminen <at> iki <dot> fi



More information about the Python-list mailing list