Re: debuglevel for a HTTP request
> It doesn't show the debug output, any ideas? I think like this: opener = urllib2.build_opener(urllib2.HTTPHandler(debuglevel=1)) -- http://mail.python.org/mailman/listinfo/python-list
debuglevel for a HTTP request
#Python 2.5 # from Dive Into Python 11.5 import httplib httplib.HTTPConnection.debuglevel = 1 import urllib2 request = urllib2.Request('http://localhost/test/atom.xml') opener = urllib2.build_opener() feeddata = opener.open(request).read() It doesn't show the debug output, any ideas? -- http:/