Buy commercial curl support. We
help you work out your issues, debug your libcurl applications, use the API,
port to new platforms, add new features and more. With a team lead by the
curl founder Daniel himself.
Re: status reason-phrase missing for H2
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Dan Fandrich via curl-users <curl-users_at_lists.haxx.se>
Date: Fri, 23 Aug 2024 16:38:37 -0700
On Fri, Aug 23, 2024 at 11:44:07AM -0500, Yang Yu via curl-users wrote:
> Compare HTTP 1.1 response header output with H/2
>
> $ curl -I http://www.http2demo.io/
> HTTP/1.1 200 OK
>
> $ curl -I https://www.cloudflare.com
> HTTP/2 200
>
> For H2, the reason phrase is not shown in curl output.
The reason phrase isn't even available in the HTTP/2 protocol. According to
RFC7540:
HTTP/2 does not define a way to carry the version or reason phrase
that is included in an HTTP/1.1 status line.
Dan
Date: Fri, 23 Aug 2024 16:38:37 -0700
On Fri, Aug 23, 2024 at 11:44:07AM -0500, Yang Yu via curl-users wrote:
> Compare HTTP 1.1 response header output with H/2
>
> $ curl -I http://www.http2demo.io/
> HTTP/1.1 200 OK
>
> $ curl -I https://www.cloudflare.com
> HTTP/2 200
>
> For H2, the reason phrase is not shown in curl output.
The reason phrase isn't even available in the HTTP/2 protocol. According to
RFC7540:
HTTP/2 does not define a way to carry the version or reason phrase
that is included in an HTTP/1.1 status line.
Dan
-- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2024-08-24