[issue19996] httplib infinite read on invalid header

brian yardy report at bugs.python.org
Fri Jun 27 14:09:16 CEST 2014


brian yardy added the comment:

import http.client
    h = http.client.HTTPConnection('http://www.einstantloan.co.uk/')
    h.request('GET', '/', headers={'Accept-Encoding': 'gzip'})
    r = h.getresponse()
    hdrs = r.getheaders()
    body = r.read()  # Hang here.

curl --compressed http://www.einstantloan.co.uk/

----------
nosy: +brianyardy

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


More information about the Python-bugs-list mailing list