cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How can I GET a gzipped static resource and have libcurl uncompress it?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 13 Jun 2009 00:07:47 +0200 (CEST)

On Wed, 10 Jun 2009, Mohun Biswas wrote:

> problem is that as far as I can tell, libcurl won't uncompress it unless it
> sees the Content-Encoding header, and there's no way to add a custom header
> to a static resource.

Can't you trick the server into providing one?

> Am I missing something? All I want is to tell the libcurl library "Here's
> the URL of a compressed file. Go get it and decompress it".

No, there's no such option. I can see how it could be useful in situations
such as yours though...

-- 
  / daniel.haxx.se
Received on 2009-06-13