decompression gzip data with curl

Viewed 9609

I added curl_easy_setopt(client, CURLOPT_ENCODING, "gzip"); to my code.

I expected curl to cause the server to send compressed data AND to decompress it.

Actually i see in HTTP header that the data is compressed (Vary: Accept-Encoding Content-Encoding: gzip), but curl doesn't decompress it for me.

Is there an additional command I should use for this?

2 Answers
Related