[issue16062] Socket closed prematurely in httplib for https

2021-04-28 Thread Irit Katriel
Irit Katriel added the comment: Issue5542 was fixed, so if it's the same thing this is also fixed. If it's not the same thing, then python 2.7 is past EOL so please create a new issue if you can reproduce this problem in 3.8+. -- nosy: +iritkatriel resolution: -> out of date stage:

[issue16062] Socket closed prematurely in httplib for https

2012-09-28 Thread ABR
ABR added the comment: If that's where the bug is. I forgot to mention this issue seems identical to 5542 (http://bugs.python.org/issue5542), but for https. The fix there was in the underlying url/httplib. -- ___ Python tracker

[issue16062] Socket closed prematurely in httplib for https

2012-09-27 Thread Thomas Lee
Thomas Lee added the comment: Thanks ABR. You may be better off raising a ticket against requests (https://github.com/kennethreitz/requests). I'm assuming what you want to happen here is for the session.post() call to return the 401 response without raising an exception. Perfectly reasonable,

[issue16062] Socket closed prematurely in httplib for https

2012-09-27 Thread ABR
New submission from ABR: When attempting to use basic auth over https with a server that sends 401 and closes the connection as soon as the headers missing auth are received, the process aborts with a broken pipe when (presumably) trying to send the POST body. session = requests.session(auth=