curl-library
Re: how to get decompressed content length from libcurl
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 6 May 2011 10:49:55 +0200 (CEST)
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
said.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-05-06