curl-library
Re: Range requests and proxies
From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 3 Oct 2018 14:51:32 +0200 (CEST)
Date: Wed, 3 Oct 2018 14:51:32 +0200 (CEST)
On Wed, 3 Oct 2018, Samuel Hurst via curl-library wrote:
> I could wait until the end of a transfer, use CURLINFO_RESPONSE_CODE but
> then I've received many MB of data when I only wanted a few kB.
You *can* actually use CURLINFO_RESPONSE_CODE or CURLINFO_HTTP_CONNECTCODE as
soon as libcurl has received those status lines (and thus parsed and stored
the number).
I think we should update the docs to make it clear that these two informations
will be available as soon as libcurl has parsed them. Before that, they will
return zero.
-- / daniel.haxx.se ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2018-10-03