The httpie command on Linux is similar to CURL, but its use is simpler. It allows you to download files and also connect to web APIs to test REST or Backend Javascript web applications.
It allows you to interact with HTTP servers, RESTful APIs, and web services.
To install on Ubuntu or Debian:
To install on Red Hat/CentOS/Fedora:
Once installed, its use is simple, simply enter the URL:
{
“base”: “stations”,
“clouds”: {
“all”: 81
}, The http command already does the job of entering the header and formatting the JSON, without the need to enter additional parameters and commands.
It allows you to pass POST parameters:
},
“json”: null,
“origin”: “192.241.133.165”,
“url”: “http://httpbin.org/post”
} A file can also be sent in a simple way, using redirection