I’m writing a web-app that uses several 3rd party web APIs, and I want to keep track of the low level request and responses for ad-hoc analysis. So I’m looking for a recipe that will get Python’s urllib2 to log all bytes transferred via HTTP. Maybe a sub-classed Handler?
Share
Well, I’ve found how to setup the built-in debugging mechanism of the library:
But I’m still looking for a way to dump all the information transferred.