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

Using --follow with --verbose, the redirects in the middle aren't displayed #71

Open
fearphage opened this issue Jul 26, 2021 · 0 comments

Comments

@fearphage
Copy link

httpie-go skips everything in the middle and shows the final result. HTTPie shows all the redirects and their related headers or bodies (respective of params).

HTTPie-go

➜  auth git:(gds) ht -Fvh https://google.com
HTTP/2.0 200 OK
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private, max-age=0
Content-Type: text/html; charset=ISO-8859-1
Date: Mon, 26 Jul 2021 21:45:40 GMT
Expires: -1
P3p: CP="This is not a P3P policy! See g.co/p3phelp for more info."
Server: gws
Set-Cookie: 1P_JAR=2021-07-26-21; expires=Wed, 25-Aug-2021 21:45:40 GMT; path=/; domain=.google.com; Secure
Set-Cookie: NID=220=PbsBwy_-qlQkTuwp-JCnTZDn1L1ejUzmdU6ntxNfPikOOSY01__hvR1WPG7wTpSCMG55jkcj1ScIz_6cNG7flk3Avfb6KKb2BH9Nv5f-vXanfdB23NdLn6LUcZPUkNrTh26S3L7sYSpb6OUMpDeYruSUM_GwVUDFbB-TrLir3JM; expires=Tue, 25-Jan-2022 21:45:40 GMT; path=/; domain=.google.com; HttpOnly
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

HTTPie (python)

➜  auth git:(gds) http -Fvh https://google.com
HTTP/1.1 301 Moved Permanently
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: public, max-age=2592000
Content-Length: 220
Content-Type: text/html; charset=UTF-8
Date: Mon, 26 Jul 2021 21:45:52 GMT
Expires: Wed, 25 Aug 2021 21:45:52 GMT
Location: https://www.google.com/
Server: gws
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0

HTTP/1.1 200 OK
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private, max-age=0
Content-Encoding: gzip
Content-Type: text/html; charset=ISO-8859-1
Date: Mon, 26 Jul 2021 21:45:53 GMT
Expires: -1
P3P: CP="This is not a P3P policy! See g.co/p3phelp for more info."
Server: gws
Set-Cookie: 1P_JAR=2021-07-26-21; expires=Wed, 25-Aug-2021 21:45:53 GMT; path=/; domain=.google.com; Secure
Set-Cookie: NID=220=ATD0Gaaal5313XDyFgcFsa8ENCW3IVbeN3oaO-SHsLvq5LZMZrmhgxtEkIu08j7ou_kt8HzxThBUA28uPJrAmopGHIIzqsAqgIE0oTHj1r4Wb0sGjqTDDBCf3-riucl0uCMC8LWgZkbPPP1P6apTqj374EFfJCkj1jlBbjVyuvE; expires=Tue, 25-Jan-2022 21:45:53 GMT; path=/; domain=.google.com; HttpOnly
Transfer-Encoding: chunked
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
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

1 participant