cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_ENCODING (was: Blocking variant of curl_multi_perform)

From: Olaf van der Spek <olafvdspek_at_gmail.com>
Date: Tue, 9 Mar 2010 22:27:33 +0100

On Tue, Mar 9, 2010 at 10:19 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Tue, 9 Mar 2010, Olaf van der Spek wrote:
>
>> The header tells the client what encodings it accepts/understands. It's
>> not supposed to be a mechanism for the client to tell the server whether
>> it's a good idea to compress the content.
>
> Historically you may be right, but in current HTTP it is a request for the
> server to compress the content it delivers.

How's that?
Debian Lighttpd for example has compress.filetype =
("text/plain", "text/html", "application/x-javascript", "text/css")
So it won't compress a file just because you send a accept encoding header.

Olaf
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-03-09