Ricardo Gladwell <ricardo.gladwell at btinternet.com> writes: > I am attempting to use urllib2 to automate the process of logging onto > a web site with BASIC authentication. To do this I use the following > code fragment: What version of Python? It's buggy in 2.0, but fixed in 2.1. Paul.