HTTP read incomplete data

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
nsstudios
Enthusiast
Enthusiast
Posts: 309
Joined: Wed Aug 28, 2019 1:01 pm
Location: Serbia
Contact:

HTTP read incomplete data

Post 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.
Quin
Addict
Addict
Posts: 1131
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: HTTP read incomplete data

Post by Quin »

Giving this a +1. Needed it just a week or so ago, actually.
infratec
Always Here
Always Here
Posts: 7588
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: HTTP read incomplete data

Post 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.
Post Reply