Send JSON body in an HTTP POST request.
Section: DNS HTTP and Remote Connectivity
POST JSON to API
bash
bash
curl -X POST https://api.example.com/items -H 'Content-Type: application/json' -d '{"name":"demo"}'Explanation
Useful for quick API testing without a GUI client.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing DNS HTTP and Remote Connectivity
Verbose HTTP request
Show request/response details and TLS handshake summary.
Create local SSH port forward
Forward a local port to a remote host/port through SSH.