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.html

Reply via email to