http Command Examples

HTTPie: an HTTP client designed for testing, debugging, and generally interacting with APIs & HTTP servers. More information: https://httpie.io/docs/cli/usage.

http {{https://example.org}}

http --print {{H|B|h|b|m|Hh|Hhb|...}} {{https://example.com}}

http {{GET|POST|HEAD|PUT|PATCH|DELETE|...}} --proxy {{http|https}}:{{http://localhost:8080|socks5://localhost:9050|...}} {{https://example.com}}

http {{-F|--follow}} {{https://example.com}} {{'User-Agent: Mozilla/5.0' 'Accept-Encoding: gzip'}}

http --auth {{username:password|token}} --auth-type {{basic|digest|bearer}} {{GET|POST|...}} {{https://example.com/auth}}

http --offline {{GET|DELETE|...}} {{https://example.com}}

http --session {{session_name|path/to/session.json}} {{--auth username:password https://example.com/auth API-KEY:xxx}}

http --form {{POST}} {{https://example.com/upload}} {{cv@path/to/file}}