title: How to enable libcurl to decompress gzip data on windows?
body: <p>I built openssl and <code>zlib</code> and then <code>libcurl</code> with the following command:</p>
  
  <pre><code>nmake -f Makefile.vc6 CFG=release-dll-ssl-dll-zlib-dll
  </code></pre>
  
  <p>In the output I could see that <code>zlib</code> is enabled during the compilation of <code>libcurl</code> classes.</p>
  
  <p>But when I use the <code>libcurl</code> to fetch a compressed page with the following settings, the response is not decompressed.</p>
  
  <pre><code>curl_easy_setopt(handle, CURLOPT_ENCODING, "");
  curl_easy_setopt(handle, CURLOPT_HTTP_CONTENT_ENCODING, 1L);
  
  CURLOPT_ENCODING is defined as CURLOPT_ACCEPT_ENCODING.
  
  The libcurl version is 7.35.0. zlib version is 1.2.8 and openssl version is 1.0.1i.
  </code></pre>
  
  <p>Really appreciate if there is someone who has used <code>libcurl</code> on windows to decompress data and share your experience. Thanks.</p>