A photo of Mitesh Shah

Mitesh Shah

Linux Enthusiast
System Administrator

Email Skype Github Twitter Google+ Resume Hire Me Keybase LinkedIn Stackoverflow


HTTPie - HTTP for Humans

Overview

  • HTTPie - Command Line HTTP Client.
  • Also known for cURL and wget command Alternative.
  • HTTPie goal is to make CLI interaction with web services as human-friendly as possible.

HTTPie - cURL and wget Alternative

Features

  • Expressive and intuitive syntax
  • Formatted and colorized terminal output
  • Built-in JSON support
  • Forms and file uploads
  • HTTPS, proxies, and authentication
  • Arbitrary request data
  • Custom headers
  • Persistent sessions
  • Wget-like downloads
  • Python 2.6, 2.7 and 3.x support
  • Linux, Mac OS X and Windows support
  • Plugins
  • Documentation
  • Test coverage

Install HTTPie

Universal Installation
# Make sure we have an up-to-date version of pip and setuptools:
$ pip install --upgrade pip setuptools
$ pip install --upgrade httpie
Install on Debian Based Linux Distribution such as Debian/Ubuntu
$ sudo apt-get install httpie
Install on RPM Based Distribution such as REDHAT/CentOS
$ yum install httpie

Examples of HTTPie

$ http -a USERNAME POST https://api.github.com/repos/jkbrzt/httpie/issues/83/comments body='HTTPie is awesome!'
  • Upload file
$ http example.org < file.json
  • Download file
$ http example.org/file > file

# wget style
$ http --download example.org/file

More Information

httpie from Scott Leberknight




Post Navigation