httpie

User-friendly HTTP client for testing APIs from the terminal.

brewmacoslinux
Try with needOr install directly
Source

About

User-friendly cURL replacement (command-line HTTP client)

Commands

httphttps

Examples

make a simple GET request to a URL$ http GET httpbin.org/get
send JSON data with a POST request$ http POST httpbin.org/post name=John email=john@example.com
pretty print JSON response from an API$ http GET api.example.com/users | http
add custom headers to an HTTP request$ http GET httpbin.org/get Authorization:"Bearer token123"
save response to a file$ http --download GET httpbin.org/image/png > image.png