[issue7776] httplib.py: ._tunnel() broken

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: Cameron could you provide a patch for this? -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Python-bu

[issue7776] httplib.py: ._tunnel() broken

2010-01-26 Thread Cameron Simpson
Cameron Simpson added the comment: Well, following your description I've backed out my urllib2 test case to this: f = urllib2.urlopen('https://localhost/boguspath') os.system("lsof -p %d | grep IPv4" % (os.getpid(),)) f = urllib2.urlopen(R) print f.read() and it happily runs HTTPS thro

[issue7776] httplib.py: ._tunnel() broken

2010-01-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: As you noticed, the _set_tunnel method is a private method not intended to be used directly. Its being used by urllib2 when https through proxy is required. urllib2 works like this, it reads HTTPS_PROXY environment variable (in turn includes HTTPSProxyHandler

[issue7776] httplib.py: ._tunnel() broken

2010-01-25 Thread Cameron Simpson
Cameron Simpson added the comment: Well, I've established a few things: - I'm mischaracterised this issue - httplib's _set_tunnel() is really meant to be called from urllib2, because using it directly with httplib is totally counter intuitive - a bare urllib2 setup fails with its o

[issue7776] httplib.py: ._tunnel() broken

2010-01-24 Thread Cameron Simpson
Cameron Simpson added the comment: It's looking like I have my idea of .host versus ._tunnel_host swapped. I think things are still buggy, but my interpretation of the bug is wrong or misleading. I gather that after _set_tunnel(), .host is the proxy host and that ._tunnel_host is the original

[issue7776] httplib.py: ._tunnel() broken

2010-01-24 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue7776] httplib.py: ._tunnel() broken

2010-01-24 Thread Cameron Simpson
Cameron Simpson added the comment: Amendment: regarding the infinite regress, it looks like there will not be a recursion if the caller leaps straight to the .connect() method. However, if they do that then the call to _tunnel() from within connect() will happen _after_ the socket is made dir

[issue7776] httplib.py: ._tunnel() broken

2010-01-24 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin priority: -> normal stage: -> test needed versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ _

[issue7776] httplib.py: ._tunnel() broken

2010-01-24 Thread Cameron Simpson
New submission from Cameron Simpson : I'm trying to do HTTPS via a proxy in Python 2.6.4 (which is supposed to incorporate this fix from issue 1424152). While trying to debug this starting from the suds library I've been reading httplib.py and urllib2.py to figure out what's going wrong and fo