JSON POST
curl -X POST -H 'Content-Type: application/json' -d '{"name":"Ada"}' https://api.example.invalid/usersGenerated clients should send the same JSON bytes with the same content type.
Paste a curl command below. It's parsed entirely in your browser — the request is never sent anywhere, and credentials in the command are never transmitted. Shell features this tool can't safely interpret (variable expansion, command substitution, pipes, unrecognized flags) are rejected explicitly rather than guessed at.
Parsed request
| Method | POST |
| URL | https://api.example.com/users |
| Headers | Content-Type: application/json Authorization: Bearer YOUR_TOKEN |
| Body | {"name": "Ada Lovelace", "role": "engineer"} |
A useful conversion preserves the method, headers, authentication, query parameters, and exact request body.
JSON POST
curl -X POST -H 'Content-Type: application/json' -d '{"name":"Ada"}' https://api.example.invalid/usersGenerated clients should send the same JSON bytes with the same content type.
Query-string GET
curl 'https://api.example.invalid/posts?userId=1'
The URL carries filtering state; no request body is needed.
Examples and guidance reviewed .