Johannes recently showed me httpie
. It's a very nice tool for sending HTTP requests.
It is much simpler to use than curl
.
Installation
$ sudo -H pip install httpie
Usage
$ http --form POST localhost:5000/api/recording recording=[{}] id=1
HTTP/1.0 200 OK
Content-Length: 21
Content-Type: text/html; charset=utf-8
Date: Sun, 22 Mar 2015 15:50:27 GMT
Server: Werkzeug/0.10.1 Python/2.7.8
edit recording with 1
The output is colored in a very nice way: