curl / Mailing Lists / curl-library / Single Mail


Re: Range requests and proxies

From: Daniel Stenberg via curl-library <>
Date: Fri, 5 Oct 2018 15:00:01 +0200 (CEST)

On Wed, 3 Oct 2018, Samuel Hurst wrote:

> So in my particular case, would you suggest getting CURLINFO_RESPONSE_CODE in
> the first call to write_callback?

Yes. Because once the first byte arrives, the headers have all been parsed
already and CURLINFO_RESPONSE_CODE *should* be non-zero...

> I'm guessing curl knows that the first response will be from the proxy, and
> will only fill in the response code when it's sure it's talking to the
> intended origin?


Received on 2018-10-05