httpie – A Pretty Way to cURL for APIs

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"}' http://httpbin.org/put

Where as with httpie, its a simple:


http PUT httpbin.org/put hello=world

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

httpie output

Website: https://github.com/jkbr/httpie

Justin is currently the Director of Development for the Deseret News. He is active in the Utah Open Source community. He is an advisory member of the Utah Open Source Foundation, and helps with the anual Utah Open Source Conference. He primarily focuses on PHP, MySQL, Redis, HTML, CSS, jQuery, and JavaScript. When he gets the time, he enjoys to play jazz piano. Read More

Posted in General