-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
Description
I did this
So I called a http2 server that sends trailer headers (so headers frame after data frames) like so:
curl url --http2-prior-knowledge --verbose
I got the response as such:
* Connected to localhost (127.0.0.1) port 8080 (#0)
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7fe0c900d600)
> GET / HTTP/2
> Host: localhost:8080
> User-Agent: curl/7.64.1
> Accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 4294967295)!
< HTTP/2 200
< trailer: test
<
* Connection #0 to host localhost left intact
Hello world!* Closing connection 0
I expected the following
I expected that after data headers: test: ok
would also be displayed.
curl/libcurl version
curl 7.64.1 (x86_64-apple-darwin19.0) libcurl/7.64.1 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 nghttp2/1.39.2
operating system
Mac os 10.15.4
xpepermint