Hacker News new | past | comments | ask | show | jobs | submit login

I'd be extremely surprised if chunked encoding is not supported by the standard python http requests libraries.



I 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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: