Page 1 of 1

HTTP read incomplete data

Posted: Wed Nov 01, 2023 7:27 pm
by nsstudios
It would be nice if there was a way to read http request data before it was complete.
There are cases like audio streams, etc. that would never quite end, or getting only a chunk of a huge file, that would be really useful to be able to do without making a raw connection and parsing raw data, which even then works only for cases that don't use SSL.

Re: HTTP read incomplete data

Posted: Sat Nov 04, 2023 4:28 pm
by Quin
Giving this a +1. Needed it just a week or so ago, actually.

Re: HTTP read incomplete data

Posted: Sat Nov 04, 2023 6:00 pm
by infratec
You can do this with the inbuild libcurl.
The receive function is called in chunks. You can interrupt the transfer maybe at a given size.