Skip to content

Full request-line sent with http2 #3570

Closed
@bungle

Description

@bungle

I did this

curl -x http://example.test:8000/ http://www.example.org:1234/ \
     --http2-prior-knowledge -v

and from that I got this (the relevant part only):

> GET http://www.example.org:1234/ HTTP/2
> Host: www.example.org:1234

Which my Nginx server terminated with:

2019/02/14 [info] client sent invalid :path header: "http://www.example.org:1234/"
                  while reading client request headers

I expected the following

With http2 the client should not send other than path+query with the request line as it is not supported with http2.

I expected:

> GET / HTTP/2
> Host: www.example.org:1234

curl/libcurl version

url 7.63.0 (x86_64-apple-darwin16.7.0) libcurl/7.63.0 OpenSSL/1.0.2q zlib/1.2.8
                                       libidn2/2.1.0 nghttp2/1.35.1
Release-Date: 2018-12-12
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3
           pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP
          HTTP2 UnixSockets HTTPS-proxy 

operating system

macOS Sierra 10.12.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions