http --session myapi https://api.example.com

Category: Web App Development

http --session myapi https://api.example.com

Reuse cookies and headers across HTTPie calls

Stores cookies and headers from the response into a session named myapi, so later calls with the same session behave like one browser. Login once with --session and every subsequent request carries the auth cookie. Sessions persist in ~/.httpie.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.