With urllib, you can set httplib.HTTPConnection.debuglevel to see the HTTP
conversation. But it doesn't work with urllib2. Can someone explain how
to use it in conjunction with urllib2?
Longer story: debuuglevel is a nice debug tool that lets you see the
client-server HTTP conversation:
Terry Carroll wrote:
With urllib, you can set httplib.HTTPConnection.debuglevel to see the HTTP
conversation. But it doesn't work with urllib2. Can someone explain how
to use it in conjunction with urllib2?
You have to create your own HTTPHandler, set it to debug and install it in
On Tue, 8 Nov 2005, Kent Johnson wrote:
You have to create your own HTTPHandler, set it to debug and install it
in urllib2. Like this:
Thanks, Kent!
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor