HTTPie
HTTPie is a command-line HTTP client, which is used to make CLI interaction with web services with easy command line interaction.
It is written in Python
and is basically designed for testing, debugging, interacting with APIs & HTTP servers.
http
& https
are used to create and send arbitrary HTTP requests.
Generally, its syntax is user friendly.
Its main feature are:
- 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
- Linux, macOS, Windows, and FreeBSD support
- Plugins
- Documentation
- Test coverage
Linux distributions provide a HTTPie package and can be easily installed using the following cmd:
# apt-get install httpie (Debian/Ubuntu)
# dnf install httpie (Fedora)
# yum install httpie (RHEL)
syntax for using httpie:
$ http [options] [METHOD] URL [ITEM [ITEM]]
That was all about HTTPie