httpie - A Pretty Way to cURL for APIs

Posted by Justin Carmony on February 23rd, 2012

Thanks to Ben Ramsey for sharing this nifty little tool called httpie. What it does is it makes calling APIs from the CLI easy as pie. With curl you’d see something like this:


curl -i -X PUT -H ‘Content-Type:application/json; charset=utf-8’ \

-d ‘{"hello":"world"}’


Where as with httpie, its a simple:


http PUT hello=world


This is great for working with JSON based APIs. It also will pretty up the output:

httpie output


About Justin Carmony

Justin is the Director of Engineering for Deseret Digital Media, President of the Utah PHP Usergroup, and member of the Utah Open Source Foundation which organizes the OpenWest Conference. Justin loves just about anything with web technologies from PHP, JavaScript, Node.js, Salt, and managing engineering teams.

Learn More