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 <[email protected]>
<http://bugs.python.org/issue16062>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com