debugging https connections with urllib2?

R

Roy Smith

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.
 
I

Irmen de Jong

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.

Put a proxy between the https-service endpoint and your client app.
Let the proxy talk https and let your client talk http to the proxy.

Irmen
 
R

Roy Smith

Irmen de Jong said:
Put a proxy between the https-service endpoint and your client app.
Let the proxy talk https and let your client talk http to the proxy.

Clever. I like. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,701
Latest member
XavierQ83

Latest Threads

Top