[Python-Dev] Python 3.0 urllib fails with chunked HTTP responses

Jeremy Hylton jeremy at alum.mit.edu
Mon Dec 15 20:19:39 CET 2008

I have a patch that appears to fix this bug
but I'm not sure about its interaction with the io module and
RawIOBase.  Is there a new IO expert who could take a look at it for


On Sun, Dec 14, 2008 at 11:06 PM, Jeremy Hylton <jeremy at alum.mit.edu> wrote:
> This bug is pretty serious, because urllib will insert garbage into
> the application-visible data for a chunked response.  It simply
> ignores the fact that it's reading a chunked response and includes the
> chunked header data is payload data.  The original bug was reported in
> September, but no one noticed it.  It was reported again recently.
> http://bugs.python.org/issue3761
> http://bugs.python.org/issue4631
> I suspect we'd want to get a 3.0.1 out as soon as this is fixed, but
> that's not my call.
> Jeremy

More information about the Python-Dev mailing list