[issue34629] Python3 regression for urllib(2).urlopen(...).fp for chunked http responses

Jonathan Schweder report at bugs.python.org
Thu Jul 1 14:31:04 EDT 2021


Jonathan Schweder <jonathanschweder at gmail.com> added the comment:

Hello @tkruse, I have made some research and found that when using the Chunked transfer encoding [1], each chunk is preceded by its size in bytes, something that really happen if you check the content of one downloaded file from the example you provided [2]. So far, I would say that this is not a bug, it is just how the transfer encoding works.

[1]: https://en.wikipedia.org/wiki/Chunked_transfer_encoding
[2]: https://gist.github.com/jaswdr/95b2adc519d986c00b17f6572d470f2a

----------
nosy: +jaswdr

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34629>
_______________________________________


More information about the Python-bugs-list mailing list