[Tutor] Cookies and authorization

Kent Johnson kent37 at tds.net
Thu Jun 23 20:18:51 CEST 2005

D. Hartley wrote:
> My problem is, when I plug this url into my sample code above, I get
> an error ("HTTP Error 401: Authorization Required"), because normally
> when you go to this url it makes you enter in a username and a
> password.  
> (Also, there is lots of documentation on the cookie modules, and, to
> my own great amusement, even examples(!!), but if anyone has a simple
> howto for cookie processing, that would also be a great resource!)

See http://www.voidspace.org.uk/python/articles.shtml#http for articles about authorization and cookies. Make sure you read the auth article to the end, it does it the hard way first to show what is going on...


More information about the Tutor mailing list