You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
They both work actually, it depends what the server accepts. It's just raw data, so in the later case the server needs to parse it as json. http-console doesn't care what you type in there.
I'd like to humbly predict that inserting a super-brief explanation of typical formatting of POST arguments from a regular HTML web form will save other people time. I'm not the sharpest pencil in the drawer, but I'm also not atypical, and it cost me about an hour of poking around.
Got POST with form data to work: $ http-console localhost $ http://localhost:80/> /myapp/ $ http://localhost:80/myapp/login.php> Content-type: application/x-www-form-urlencoded $ http://localhost:80/myapp/login.php> post $ ... username=admin&password=admin
Activity
cloudhead commentedon Jul 30, 2010
They both work actually, it depends what the server accepts. It's just raw data, so in the later case the server needs to parse it as json. http-console doesn't care what you type in there.
bbn commentedon Jul 31, 2010
understood.
bbn commentedon Aug 1, 2010
I'd like to humbly predict that inserting a super-brief explanation of typical formatting of POST arguments from a regular HTML web form will save other people time. I'm not the sharpest pencil in the drawer, but I'm also not atypical, and it cost me about an hour of poking around.
cloudhead commentedon Aug 2, 2010
Good idea.
kamweti commentedon Sep 14, 2012
Got POST with form data to work:
$ http-console localhost $ http://localhost:80/> /myapp/ $ http://localhost:80/myapp/login.php> Content-type: application/x-www-form-urlencoded $ http://localhost:80/myapp/login.php> post $ ... username=admin&password=adminbcaccinolo commentedon Apr 2, 2014
@bbn Thanks for the explanation cause the
readmewas not working for me. 👍Update readme to on cookies and request data