urllib2 and HTTP authentication
Python's URL and HTTP code isn't well documented. I understand what's going on but mostly because I read the code for the urllib, urllib2, urlparse, httplib, and cgi libraries and the related RFCs. Fuzzyman noticed the problem and wrote two good essays to explain the urllib2 module and how to do basic authentication.
Copyright © 2001-2008 Dalke Scientific Software, LLC.


