You need to handle the cookie that comes with the server response. Example code:
import urllib2 opener = urllib2.build_opener() opener.addheaders.append(('Cookie', 'cookiename=cookievalue')) f = opener.open("http://example.com/") -- http://mail.python.org/mailman/listinfo/python-list