News for hackers. Stuff that matters.
Re:Show HN: A simple, fast and user-friendly alternative to ... by zimpenfish on Monday October 09, 2017 @07:08AM (#15432862)
> Pretty much PostMan (that a lot of ppl use for no reason)

I can't see anywhere in the httpie docs about capturing variables from and/or running tests on the HTTP responses - it's an extremely powerful feature of Postman when you're debugging non-trivial HTTP flows.

Re:Show HN: A simple, fast and user-friendly alternative to ... by joshka on Tuesday October 10, 2017 @05:40AM (#15440547)
and nor should it. If you think the unix way and use a tool that excels in that you'll find your path to success (e.g. jq).

    $ userId=$(http get https://jsonplaceholder.typicode.com/posts/1 | jq '.userId')
    $ http get "https://jsonplaceholder.typicode.com/users/$userId" | jq '{name,email}'
    {
      "name": "Leanne Graham",
      "email": "[email protected]"
    }