HTTPie
HTTPie
Alternative to curl
Install
sudo apt install httpie
GET
http 127.0.0.1:8000 http --follow GET 127.0.0.1:8000/ 'Authorization: Bearer ey**...**Sg'
get with parameters
echo '{"query": {"match_all": {}}}' | http GET :9200/_count?pretty
POST
http --follow POST 127.0.0.1:8000/auth/api-token-auth/ http --follow POST 127.0.0.1:8000/auth/api-token-auth/ username=rafa password=1234qwer