cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: question about chunked encoding and CURLINFO_SIZE_DOWNLOAD

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 16 May 2014 22:10:16 +0200 (CEST)

On Fri, 16 May 2014, Ryan Braud wrote:

> It does seem that using CURLOPT_DEBUGFUNCTION and counting CURLINFO_DATA_IN
> gives me ALL the (non-header) bytes received though, including the bytes for
> chunked meta-data. Is this correct?

Yes! The debug callback gets the full data, including the chunking itself.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-05-16