cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: HTTP2: HTTP/1.1 in libcurl's verbose output

From: Mohammad_AlSaleh <ce.mohammad.alsaleh_at_gmail.com>
Date: Thu, 29 Jan 2015 00:42:23 +0200

On Wed, Jan 28, 2015 at 11:26:31PM +0100, Daniel Stenberg wrote:
> On Wed, 28 Jan 2015, Mohammad_AlSaleh wrote:
>
> >I'm testing HTTP2 support in libcurl. At first glance, things seem to
> >work correctly. But GET lines in libcurl's verbose output seem wrong:
> >
> >>GET / HTTP/1.1
> >
> >The reply however looks correct:
> >
> >< HTTP/2.0 200
> >
> >Am I missing something?
>
> Ah.
>
> First: yeah, this is probably something we should fix so that users
> who see this request won't be mislead into believing this is
> actually a 1.1 request.
>

Yes. That's what I was trying to communicate through.

> The request you see output when doing a HTTP/2 request is actually
> completely made up and it is not how it will be sent for real over
> the wire. Over the wire there will be a binary and compressed chunk
> of data. I decided to show the requeset in 1.1-style since it is the
> that same information that is sent and it makes it familiar and easy
> for users to see what the request contains.
>
> The specific version number in this request is never actually sent
> over the wire in the request. It is only shown like this.
>

I'm aware.

I read your http2 document. And it was very informative.
Thank you for taking the time to write it.

> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-01-28