Skip to content

POST / PUT data in readme misleading #14

Open

Description

@bbn

Browsing the code I was able to figure out that in order to send multiple datums for POST I had to use a syntax like

x=1&y=2

rather than something like

{"x":1,"y":2}

The latter would be cool, but seems to not be supported at the moment. The former is fine but the documentation should be changed to reflect it.

Activity

  1. cloudhead commented on Jul 30, 2010

    @cloudhead
    Owner

    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.

  2. bbn commented on Jul 31, 2010

    @bbn
    Author

    understood.

  3. bbn commented on Aug 1, 2010

    @bbn
    Author

    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.

  4. cloudhead commented on Aug 2, 2010

    @cloudhead
    Owner

    Good idea.

  5. kamweti commented on Sep 14, 2012

    @kamweti

    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

  6. bcaccinolo commented on Apr 2, 2014

    @bcaccinolo

    @bbn Thanks for the explanation cause the readme was not working for me. 👍

  7. added a commit that references this issue on Jan 20, 2015
    74e0cda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions