[New-bugs-announce] [issue16062] Socket closed prematurely in httplib for https

ABR report at bugs.python.org
Thu Sep 27 18:08:14 CEST 2012


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=(USER, PASSWORD), verify=False)
resp = session.post('https://foo.com/something')
  --> requests.exceptions.ConnectionError: [Errno 32] Broken pipe

----------
components: Library (Lib)
messages: 171379
nosy: ABR
priority: normal
severity: normal
status: open
title: Socket closed prematurely in httplib for https
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16062>
_______________________________________


More information about the New-bugs-announce mailing list