3 ms·
I'd be extremely surprised if chunked encoding is not supported by the standard python http requests libraries.
by jstanley 9y ago
I'd be extremely surprised if chunked encoding is not supported by the standard python http requests libraries.
- boramalper 9y agoI meant, a way to get the file-size when chunked transfer-encoding is used. I cannot imagine any, and I don't think requests has some magic way to calculate it (or more likely STOP after downloading n bytes). Maybe `stream=True` and `.read(5 * 1024 * 1024)` and check EOF, if not, abort.