cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: left for http2

From: Tatsuhiro Tsujikawa <tatsuhiro.t_at_gmail.com>
Date: Tue, 4 Feb 2014 21:37:16 +0900

On Tue, Feb 4, 2014 at 6:51 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Mon, 3 Feb 2014, Tatsuhiro Tsujikawa wrote:
>
> Curl needs --compressed. The thing is that in HTTP2 server can send
>> gzipped response without seeing accept-encoding: gzip, deflate in HTTP
>> request. Twitter utilizes this fact.
>>
>
> But we know it is compressed thanks to some header in the response, right?
> We should then fix the code so that http2 + header does the auto-decompress
> logic automatically. Right?
>
>
Yes, twitter sends content-encoding: gzip. One possible solution is we
pretend "" is specified in data->set.str[STRING_ENCODING] when we switched
to HTTP2.

Best regards,
Tatsuhiro Tsujikawa

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-02-04