httpie / httpie-http2

(DEPRECATED) Experimental HTTP/2 plugin for HTTPie
https://httpie.org
Other
68 stars 4 forks source link

Doesn't print HTTP headers #5

Open alanorth opened 8 years ago

alanorth commented 8 years ago

With Python 3.4.3, on Mac OS X:

$ http --print Hh https://nghttp2.org/httpbin/get     
GET /httpbin/get HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: nghttp2.org
User-Agent: HTTPie/0.9.2

HTTP/2 200

But the headers are shown using vanilla httpie:

$ http --print Hh https://nghttp2.org/httpbin/get     
GET /httpbin/get HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: nghttp2.org
User-Agent: HTTPie/0.9.2

HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Connection: close
Content-Length: 258
Content-Type: application/json
Date: Sun, 27 Sep 2015 12:04:37 GMT
Server: nghttpx nghttp2/1.3.5-DEV
Strict-Transport-Security: max-age=31536000
Via: 1.1 nghttpx
X-Backend-Header-Rtt: 0.002355
svagi commented 8 years ago

I have same problem with Python 2.7.11.

It's printing only HTTP/2 version along with status code.

$ http https://nghttp2.org/httpbin/get
HTTP/2 200
itsnotvalid commented 8 years ago

Got the same result here. Thinking this package is outdated (even though created by the creator of HTTPie itself)

theirix commented 7 years ago

It's very hard to use httpie without headers being shown. Any plans to introduce support for this?

glyph commented 7 years ago

Also, this package seems to remove syntax highlighting from the response body.

dhilipvenkatesh commented 6 years ago

Any idea if response headers will show up in http/2?

inductor commented 6 years ago

any updates...?

alex-left commented 5 years ago

Same problem. With plugin only print "HTTP/2 200" and also loose all colors in a GET mode.

verglor commented 5 years ago

Hi, @jakubroztocil, could you please look into this ? Without headers it's quite useless...

jkbrzt commented 4 years ago

https://github.com/jakubroztocil/httpie/issues/692#issuecomment-646354697