HTTPie is really a very cool CLI command tool to query REST services.

Calling services is as simple as issuing some commands like: http

For development on your local machine there are even cool shortcuts in the syntax http :8080/myapp

will do a GET http call to http://localhost:8080/myapp

The syntax is very user friendly, let’s remember some usefull:

  • headers, use ”:”
  • query params, use ”==”

Using the above, calling http X-Blog:header-value exQP==someValue will result in

HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Length: 299
Content-Type: application/json
Date: Tue, 17 Jan 2017 15:27:39 GMT
Server: nginx

    "args": {
        "exQP": "someValue"
    "headers": {
        "Accept": "*/*",
        "Accept-Encoding": "gzip, deflate",
        "Host": "",
        "User-Agent": "HTTPie/0.9.9",
        "X-Blog": "header-value"
    "origin": "",
    "url": ""

For a full documentation, visit HTTPie docs.