Build a curl command visually — copy with one click.
Visual curl command builder for testing APIs and HTTP requests. Set URL, method, headers, body and authorization — get a ready command to paste into the terminal.
-X METHOD — HTTP method (GET, POST, PUT, PATCH, DELETE, etc.);-H "Header: value" — add a custom header;-d "data" — request body (for POST/PUT/PATCH);-u user:pass — HTTP Basic Auth;-L — follow HTTP redirects;-v — verbose output (request and response headers);-k — ignore SSL certificate errors;-i — include response headers in output.Select the POST method and enter the endpoint URL. In the Headers section, add Content-Type: application/json. Then enter your JSON string in the Request Body field, for example {"key":"value"}. The tool will automatically add the flags -X POST, -H 'Content-Type: application/json', and -d '{"key":"value"}' to the generated command.
Yes. In the Headers field, add Authorization: Bearer <your_token>. The -H flag will be generated correctly. For Basic Auth, simply fill in the login and password fields in the Authorization block — the tool will produce -u user:password automatically.
Make sure you have not added extra spaces in the URL and that header lines contain no line breaks. On Windows, replace single quotes with double quotes. Also verify that the request body for a GET request is empty — cURL ignores it but it may cause confusion. If the error persists, check the URL itself and add the -v flag for verbose debug output.