curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Range requests and proxies

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
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?

Exactly!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2018-10-05