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"}’


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


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this:
search previous next tag category expand menu location phone mail time cart zoom edit close