debugging https connections with urllib2?

Roy Smith roy at panix.com
Sat Jun 18 14:57:31 EDT 2011


We've got a REST call that we're making to a service provider over https 
using urllib2.urlopen().  Is there any way to see exactly what's getting 
sent and received over the network (i.e. all the HTTP headers) in plain 
text?  Things like tcpdump and strace only have access to the encrypted 
data.

We can't just switch to using http because the endpoint we're talking to 
(and don't have control over) refuses plain-text connections.



More information about the Python-list mailing list