-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Ability to modify redirect's type (--post301 etc.) #734
Comments
@deviantony changing to (If you, for example, submit a form on a website, the most likely behaviour is that the server redirects you to another "thank you" page after processing your request to avoid double-submit on reload, etc.) curl's behaviour with
I assume that curl does change the method only when you use So httpie's default behaviour looks legit to me. What I think it is missing, though, is something like |
Thanks for the detailed explanation. I was exactly looking at the equivalent of curl's |
As per the specs, in order for the server to instruct the client to repeat the request on a redirected location with the original HTTP method it should return |
I'm using httpie to execute a POST request against my api at
myapi.mydomain.com/endpoint
:Now using follow:
Seems that the request method is changed to GET, when using
curl
, the redirect is working fine:Using
httpie
version 0.9.8The text was updated successfully, but these errors were encountered: