httpie-go icon indicating copy to clipboard operation
httpie-go copied to clipboard

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

Open fearphage opened this issue 2 years ago • 0 comments

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

fearphage avatar Jul 26 '21 21:07 fearphage