Question : Debugging httplib when using urllib2

When using urllib2
httplib.HTTPConnection.debuglevel = 1
does not provide debug output as with urllib.
How can I get it when using urllib2?

Answer : Debugging httplib when using urllib2

It depends how dirty could be your solution. You can modify the default value of debuglevel inside your local urllib2.py. I personally would not recommend such code intrusions, but it may help occasionally. It is difficult to answer if I do not know the details, motivation, and the code around.
Random Solutions  
 
programming4us programming4us