-
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
Incorrectly issues a GET request instead of POST when given a valid --session #364
Comments
I'm unable to reproduce this. Could you provide a minimal example? $ http -v --session=issue364 httpbin.org/post foo=bar | grep POST
POST /post HTTP/1.1
$ http -v --session=issue364 httpbin.org/post foo=bar | grep POST
POST /post HTTP/1.1 |
Try this script: https://gist.github.com/raphaelh/3b65bd16fb6e2662e412 Run it several times, it will alternatively issue GET and POST |
When you remove |
Thanks for your quick reply. So is there a workaround at the moment? |
Any update on this issue? |
@raphaelh the current master has a new |
When the session file exists, httpie issues a GET request even though it was told to issue a POST:
When the session file doesn't exist (notice
xx
at the end of--session="$SESSIONFILE"
), httpie correctly issues a POST request:You can find the full script here: https://github.com/raphaelh/roundcube_scripts/blob/master/rc_unread_httpie.sh
The text was updated successfully, but these errors were encountered: