Difference between revisions of "HTTPie"

From RHS Wiki
Jump to navigation Jump to search
(Created page with "= HTTPie = Alternative to curl == Install == sudo apt install httpie == GET == http 127.0.0.1:8000 == POST == http --follow POST 127.0.0.1:8000/auth/api-token-auth/ http...")
 
Line 1: Line 1:
= HTTPie =
+
= [https://httpie.org/doc HTTPie] =
 
Alternative to curl
 
Alternative to curl
 
== Install ==
 
== Install ==

Revision as of 10:03, 14 February 2019

HTTPie

Alternative to curl

Install

sudo apt install httpie

GET

http 127.0.0.1:8000

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