Back
Featured image of post HTTPie, a powerful an extendable command line HTTP client.

HTTPie, a powerful an extendable command line HTTP client.

A while ago, I found an interesting project on GitHub: HTTPie, a powerful an extendable command line HTTP client.

HTTPie (pronounced aitch-tee-tee-pie) is a command line HTTP client. Its goal is to make CLI interaction with web services as human-friendly as possible. It provides a simple http command that allows for sending arbitrary HTTP requests using a simple and natural syntax, and displays colorized output. HTTPie can be used for testing, debugging, and generally interacting with HTTP servers.

What I like most about HTTPie:

  • Colorized and nicely formatted terminal output
  • Native JSON support
  • Persistent sessions handling (JSON based)
  • Support for many Auth methods, extendable via plugins

Sample Authentication

And with the --session=~/session.json switch, the session information is saved (reusable) in the JSON format.

Sample Request

I use cURL a lot, but with HTTPie I can share the output easier. Especially with the Built-in JSON support and the Colorized output.

And best of all: The installation is very easy! I used Homebrew on my Mac and Yum on my (Centos) Linux.