curl-library
Re: Downloaded vs written sizes
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 7 Jul 2017 23:22:35 +0200 (CEST)
Date: Fri, 7 Jul 2017 23:22:35 +0200 (CEST)
On Fri, 7 Jul 2017, Pawel Veselov via curl-library wrote:
> The download counter that can be obtained from CURLINFO_SIZE_DOWNLOAD is the
> amount of bytes received over the network. So if the content was compressed,
> and was decompressed by CURL, then the amount of bytes sent to
> CURLOPT_WRITEFUNCTION would normally differ from value obtained from
> CURLINFO_SIZE_DOWNLOAD.
>
> Right?
Correct. It is also easy to verify by doing something like this:
$ curl --compressed https://curl.haxx.se --write-out '%{size_download}\n' | wc
Which shows 2524 bytes transferred with 8034 bytes content.
-- / daniel.haxx.se ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2017-07-07