contentintech
Tools

HTTPie

Inspect and send HTTP requests with readable CLI syntax.

Requests

http GET https://example.comSend a GET request
http POST https://example.com/api name=AdaSend a JSON string field
http POST https://example.com/api count:=3Send a typed JSON number
http PATCH https://example.com/api/1 active:=trueSend a JSON boolean

Headers and authentication

http https://example.com Accept:application/jsonSet a request header
http https://example.com Authorization:'Bearer TOKEN'Authenticate; avoid real tokens in shared shell history
http --auth user https://example.comPrompt for a basic-auth password
http --headers https://example.comShow response headers

Inspect safely

http --offline POST https://example.com/api name=AdaPreview a request without sending it
http --follow https://example.comFollow redirects
http --timeout=10 https://example.comBound network waiting time
http --download https://example.com/file.pdfDownload a response to a file

Section navigation