Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't print HTTP headers #5

Open
alanorth opened this issue Sep 27, 2015 · 9 comments
Open

Doesn't print HTTP headers #5

alanorth opened this issue Sep 27, 2015 · 9 comments

Comments

@alanorth
Copy link

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
Copy link

svagi commented Feb 18, 2016

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
Copy link

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

@theirix
Copy link

theirix commented May 26, 2017

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

@glyph
Copy link

glyph commented Jul 2, 2017

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

@dhilipvenkatesh
Copy link

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

@inductor
Copy link

inductor commented Aug 6, 2018

any updates...?

@alex-left
Copy link

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

@verglor
Copy link

verglor commented Feb 10, 2019

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

@jkbrzt
Copy link
Member

jkbrzt commented Jun 18, 2020

httpie/cli#692 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants