cURL cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1429 http/2 headers/body printing

From: Scott Mitchell <scottmitch3_at_users.sf.net>
Date: Thu, 02 Oct 2014 14:34:45 +0000

My mistake. I apologize...I do see the responses for the `curl --http2 https://nghttp2.org/ -i -o dump --trace-ascii dump2` request (both dump and dump2 have reasonable content). I'm a curl novice and am not familiar with the flags...I was looking for results on the console.

However I still think there is an issue with the results not being printed if their is no response body and the status code is 200. I couldn't find a scenario for this on `https://nghttp2.org/httpbin` but my web server supports a request that only provides a header response. I have not been able to generalize it past this because if my server responds with a non-200 code I see the `dump` file (using the syntax above), but it is not generated if the return code is 200. The `--trace-ascii dump2` is produced in both situations however (see attached files).

> Can you really negotiate ALPN with that OpenSSL version?

Yes. ALPN support was added in openssl 1.0.2 according to their [website](https://www.openssl.org/news/openssl-notes.html)

Attachment: dump2_200_status_code (7.0 kB; application/octet-stream) dump2_400_status_code (7.5 kB; application/octet-stream) dump_400_status_code (36 Bytes; application/octet-stream)

---
** [bugs:#1429] http/2 headers/body printing**
**Status:** pending-needsinfo
**Labels:** http2 
**Created:** Mon Sep 29, 2014 02:46 PM UTC by Scott Mitchell
**Last Updated:** Thu Oct 02, 2014 07:06 AM UTC
**Owner:** Daniel Stenberg
It seems in some scenarios curl is not printing out request/response headers and body content.  For example the following request is invalid and correctly prints out the response headers:
>$ curl --http2 -k 'https://10.0.2.2:13443/proxy/address' -d 'INVALID CONTENT' -i
HTTP/2.0 400
server:http2query2
However the following 2 requests are valid but does not print out any response headers:
>$ curl --http2 -k 'https://10.0.2.2:13443/proxy/address' -d 'VALID CONTENT' -i
$
$ curl --http2 -k 'https://10.0.2.2:13443/proxy/address' -d 'VALID CONTENT' -s -D -
$
Also the body is not printed in the second case.
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-10-02

These mail archives are generated by hypermail.