cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: decompressing a gzip stream

From: Cédric Deltheil <cedric_at_moodstocks.com>
Date: Wed, 6 Nov 2013 17:23:06 +0100

Le 6 nov. 2013 à 17:07, Ali Nikzad <nikzad.a_at_outlook.com> a écrit :

> You mean CURLOPT_ACCEPT_ENCODING option with "gzip" encoding can decompress the gzip data?

Yes. Give it a try with:

curl_easy_setopt(curl, CURLOPT_URL, "http://httpbin.org/gzip");
curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "gzip");

Cédric

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-11-06