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

--follow does not show redirects #183

Closed
vartec opened this issue Nov 29, 2013 · 17 comments
Closed

--follow does not show redirects #183

vartec opened this issue Nov 29, 2013 · 17 comments
Labels
enhancement New feature or enhancement planned Solution is being worked on

Comments

@vartec
Copy link

vartec commented Nov 29, 2013

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"}
@jkbrzt
Copy link
Member

jkbrzt commented Nov 29, 2013

@vartec +1

tylercrompton added a commit to tylercrompton/httpie that referenced this issue Dec 15, 2013
tylercrompton added a commit to tylercrompton/httpie that referenced this issue Dec 15, 2013
tylercrompton added a commit to tylercrompton/httpie that referenced this issue Dec 15, 2013
tylercrompton added a commit to tylercrompton/httpie that referenced this issue Dec 16, 2013
tylercrompton added a commit to tylercrompton/httpie that referenced this issue Dec 16, 2013
tylercrompton added a commit to tylercrompton/httpie that referenced this issue Dec 16, 2013
@amjd
Copy link

amjd commented Jun 8, 2014

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

@tylercrompton
Copy link

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

@ralphschindler
Copy link

👍

@rockymadden
Copy link

Looking for this as well. Currently using a custom bash function to accommodate.

@ian-rose
Copy link

ian-rose commented Jul 1, 2015

This would be very useful functionality to have.

@tylercrompton
Copy link

I'll redo this if @jakubroztocil would review the changes. But after a year, there were too many conflicts and it didn't seem like it would ever get reviewed, so I just deleted what I did.

@dstarmanhr
Copy link

this would be a very useful feature to have.

@jlazic
Copy link

jlazic commented Jul 22, 2015

+1 for this feature.

@jonoden
Copy link

jonoden commented Aug 27, 2015

+1

@improved-broccoli
Copy link

+1 for that feature. Thanks.

@sgoblin
Copy link

sgoblin commented Oct 18, 2015

Can you give a brief summary of how you implemented this, @tylercrompton ?

@jcdevil
Copy link

jcdevil commented Oct 19, 2015

+1 for that feature. Thanks ;)

@heyvito
Copy link

heyvito commented Dec 23, 2015

+1 for that.

jkbrzt added a commit that referenced this issue Feb 29, 2016
@jkbrzt jkbrzt closed this as completed Feb 29, 2016
@Wirone
Copy link

Wirone commented Dec 6, 2016

@jkbrzt was --show-redirects merged? I've updated to 0.9.6 and I get "http: error: unrecognized arguments: --show-redirects"..

EDIT: Nevermind, I've looked into cli.py's history and found that it was replaced with --all.

@jkbrzt
Copy link
Member

jkbrzt commented Dec 6, 2016

@Remzi1993
Copy link

@jakubroztocil --all doesn't work for me, I try to do: http --all -v :3000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement planned Solution is being worked on
Projects
None yet
Development

No branches or pull requests