cURL / Mailing Lists / curl-library / Single Mail


Re: how to get decompressed content length from libcurl

From: Daniel Stenberg <>
Date: Fri, 6 May 2011 10:49:55 +0200 (CEST)

On Thu, 5 May 2011, Arunkumar Manickam wrote:

> When the incoming http response is content encoded using either gzip or
> deflate and curl handle had been configured to decompress http response, is
> there an API to get decompressed content length from curl.

CURLINFO_SIZE_DOWNLOAD will tell you how much data it actually downloaded.

CURLINFO_CONTENT_LENGTH_DOWNLOAD will tell you what the Content-Length: value

List admin:
Received on 2011-05-06