[issue25539] python3 fail on parsing http header

Martin Panter report at bugs.python.org
Tue Nov 3 03:47:15 EST 2015


Martin Panter added the comment:

Are you able to print out the repr() of the header or the entire HTTP response so we can see exactly what characters are there? Or provide a URL if it is a public server. I suspect it may not be a completely blank line, but may have whitespace there.

Both Python 2 and 3 should stop parsing the HTTP header when they meet a blank line (two CRLFs in a row). This marks the start of the HTTP body. See <https://tools.ietf.org/html/rfc7230#section-3>.

----------
nosy: +martin.panter

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


More information about the Python-bugs-list mailing list