No Content-Length header, nor length property

zljubisic at gmail.com zljubisic at gmail.com
Thu Jul 9 08:02:03 CEST 2015


> Ah - looking at the response headers, they include "Transfer-Encoding	
> chunked" - I don't think urlopen handles chunked responses by default, 
> though I could be wrong, I don't have time to check the docs right now.
> 
> The requests library (https://pypi.python.org/pypi/requests) seems to handle 
> them - http://docs.python-requests.org/en/latest/user/advanced/#chunk-encoded-requests

Hi,

looks like - as Jon stated - server doesn't use Content-length header, so there is no way to continue a partial download, nor to know in advance what is the file size. :(

I don't see any other option here. 

Regards.



More information about the Python-list mailing list