xh POST https://api.example.com/items name=test

Category: Web App Development

xh POST https://api.example.com/items name=test

POST JSON data with the xh client

Sends a POST request with name=test serialized into a JSON body, mirroring HTTPie's shorthand. xh supports the same field syntax including file@ and := raw values. Use xh --form to switch to form encoding.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.