Build a shell-safe curl command with URL, method, headers, authentication, and body.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
URL, method, query, headers, cookies, multipart fields, and body data are shell-quoted and assembled into curl options. The preview emits text and does not send a request.
URL: https://api.example.com/users
Method: POST
Body: {"name": "John"}
Content type: application/json
Command: curl \
-X POST \
https://api.example.com/users \
-H 'Content-Type: application/json' \
-d '{"name": "John"}' \
-L
Command one line: curl -X POST https://api.example.com/users -H 'Content-Type: application/json' -d '{"name": "John"}' -L
Command parts: curl, -X, POST, https://api.example.com/users, -H, 'Content-Type: application/json', -d, '{"name": "John"}', -L
API debugging, runbooks, and CI webhook calls build curl commands.