3 ms·
You need to send zero-length chunk to indicate end of stream. If you omit that chunk and close the connection, curl will fail.
by vbezhenar 3y ago
You need to send zero-length chunk to indicate end of stream. If you omit that chunk and close the connection, curl will fail.
- acdha 3y agoYes, but if you have middle layers doing that it might be done even in error states. I had that happen in multiple applications where it meant something like a big CSV file was successfully downloaded but incomplete (or, IIRC, had a Python traceback at the end). Having a simple, unambiguous way to force a failure reduces the odds of an error being easy to miss.