Skip to content

Instantly share code, notes, and snippets.

@technovangelist
Created July 9, 2015 13:47
Show Gist options
  • Save technovangelist/ca8b01692459776d668f to your computer and use it in GitHub Desktop.
Save technovangelist/ca8b01692459776d668f to your computer and use it in GitHub Desktop.
Getting HTTPie working on the mac
1) Go to https://github.com/jkbrzt/httpie to get the full instructions on its use
2) Install it: brew install httpie
3) If you are on a Mac and have not upgraded your Python version install other stuff:
pip install --upgrade pyopenssl pyasn1 ndg-httpsclient
(I have the new 15" MBP with force touch trackpad so its as new as they get and I had to install this)
4) Use it....
If trying to use this to look at Docker Stats API, the command to use is going to be:
http --stream –f --verify=no \
--cert=$DOCKER_CERT_PATH/cert.pem \
--cert-key=$DOCKER_CERT_PATH/key.pem \ https://<IP Address of docker machine>:<Port of docker machine>/containers/<ID of container>/stats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment