Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

--follow does not show redirects #183

Open
vartec opened this Issue · 4 comments

5 participants

@vartec

I've expected http --follow to act in similar fashion as curl -i -L, however difference is that curl does show headers of all intermediate steps, httpie does not.

Expected result (standard post-redirect-get form):

HTTP/1.1 100 Continue

HTTP/1.1 303 See Other
Content-Type: text/html; charset=UTF-8
Date: Fri, 29 Nov 2013 11:50:59 GMT
Location: http://other.test.server/
Server: nginx/1.1.19
Content-Length: 0
Connection: keep-alive

HTTP/1.1 200 OK
Date: Fri, 29 Nov 2013 11:51:00 GMT
Server: Apache/2.2.14 (Ubuntu)
Vary: Accept-Encoding,Cookie
Pragma: no-cache
Cache-Control: private, max-age=0, must-revalidate
Transfer-Encoding: chunked
Content-Type: application/json

{"payload": "something"}

Actual result:

HTTP/1.1 200 OK
Cache-Control: private, max-age=0, must-revalidate
Content-Encoding: gzip
Content-Length: 414
Content-Type: application/json
Date: Fri, 29 Nov 2013 11:55:34 GMT
Pragma: no-cache
Server: Apache/2.2.14 (Ubuntu)
Vary: Accept-Encoding,Cookie

{"payload": "something"}
@tylercrompton tylercrompton referenced this issue from a commit in tylercrompton/httpie
@tylercrompton tylercrompton manually follow redirects to fix #183 fbeaca0
@tylercrompton tylercrompton referenced this issue from a commit in tylercrompton/httpie
@tylercrompton tylercrompton fixed output so that changes for #183 pass tests af5168f
@tylercrompton tylercrompton referenced this issue from a commit in tylercrompton/httpie
@tylercrompton tylercrompton added changes for #183 to the changelog ce50724
@tylercrompton tylercrompton referenced this issue from a commit in tylercrompton/httpie
@tylercrompton tylercrompton manually follow redirects to fix #183 6aee7f1
@tylercrompton tylercrompton referenced this issue from a commit in tylercrompton/httpie
@tylercrompton tylercrompton added changes for #183 to the changelog 8af0584
@tylercrompton tylercrompton referenced this issue from a commit in tylercrompton/httpie
@tylercrompton tylercrompton added changes for #183 to the changelog 694e500
@amjd

As of June 2014, it still does not show redirects. Is this being worked upon?

@tylercrompton

It was already completed, but my commits were never pulled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.