Skip to content

Instantly share code, notes, and snippets.

@cescoferraro
Forked from BlakeGardner/Install HTTPie.md
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cescoferraro/8a7257f2b381a9eb7cd2 to your computer and use it in GitHub Desktop.
Save cescoferraro/8a7257f2b381a9eb7cd2 to your computer and use it in GitHub Desktop.

This is a quick guide on installing HTTPie for Mac OS X systems. This is also useful if you want the python package management utility pip. An installed copy of Homebrew is a prerequisite.

HTTPie

# install the python package provided with homebrew
brew install python

# install HTTPie with the pip utility
pip install httpie

# add the shared python folder to your path
nano ~/.bash_profile

# Add the following line to your ~/.bash_profile
export PATH=/usr/local/share/python:$PATH

# open a new terminal and give it a go
http ifconfig.me/all.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment