[Tutor] Using debuglevel with urllib2?

2005-11-08 Thread Terry Carroll
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:

Re: [Tutor] Using debuglevel with urllib2?

2005-11-08 Thread Kent Johnson
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

Re: [Tutor] Using debuglevel with urllib2?

2005-11-08 Thread Terry Carroll
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