Re: status reason-phrase missing for H2

Dan Fandrich via curl-users <[email protected]>
Newsgroups gmane.comp.web.curl.general
Message-ID <[email protected]>
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.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.