[issue24964] Add tunnel CONNECT response headers to httplib / http.client

2015-09-05 Thread Thomas Belhalfaoui
Thomas Belhalfaoui added the comment: Terry: Thanks for the form, I just filled it. Martin: Thanks for sending your patch. I will dive into it, and try to figure out how to add support for passing in the tunnel details to the HTTPSConnection constructor

[issue24964] Add tunnel CONNECT response headers to httplib / http.client

2015-09-06 Thread Thomas Belhalfaoui
Thomas Belhalfaoui added the comment: Martin, I went through your patch and made some simple tests, and I have a couple of questions. 1) When I run the following code, I get a "Bad file descriptor" : conn = httplib.HTTPConnection("uk.proxymesh.com", 31280) conn.set_tunnel(