I came across HTTPie today, a Python-based
command line utility for executing HTTP requests in a sane way. I’m pretty
sure this is going to become a regular in my day-to-day toolbox of utilities.
Installing it onto a decent operating systems is pretty easy:
Once it had downloaded the pre-requisites, it gives you a utility which
you can use to see output from HTTP requests, be able to supply parameters,
and colourise the output.
The colours won’t show up correctly here – but if you run this in a shell
then you’ll notice that the output is coloured appropriately.
In the example above, I used
https because the server requires it. If you’re
just using it over HTTP you don’t need to specify the prefix:
If you want to send other data to the server, you can specify key=value pairs
which can be sent via a multi-part form encoded (
--form) or encoded as a