Method, URL, query rows, headers, and body become bash-quoted curl and an await fetch() snippet.
URLs without a scheme get https:// prepended. -k is for local self-signed certs only. CORS still exists in the browser; cURL ignores it.
| Name | Value |
|---|
Appends to the URL using URLSearchParams (proper encoding).
| Name | Value |
|---|
Use it to turn a form into bash-quoted curl and an await fetch() snippet you will run yourself.
Query rows merge through the URL API. Missing scheme → https://.
Do not expect this page to hit your API. We never send the request. Not multipart / FormData. Not Postman collections.
Generated cURL uses bash single quotes — cmd.exe and PowerShell will mangle them.
cURL: method, URL, -H lines, optional -d body, optional -L / -k.
fetch: a JS object; duplicate header keys collapse to the last value. Credentials map to Fetch’s credentials option.
-k skips TLS verify — local self-signed only.
POST JSON to https://api.example.com/v1/items:
curl -sS -X POST 'https://api.example.com/v1/items' \
-H 'Content-Type: application/json' \
-d '{"name":"demo"}'
That same call in the browser is still subject to CORS. If fetch fails and curl works, configure CORS headers on the API — do not blame this form.
-k against production.CORS header generator · JWT decoder
No. Copy the text and run it where you intend.
Browsers enforce CORS and mixed content. curl does not.
Use Git Bash / WSL, or rewrite quotes for PowerShell.
Not generated. Use curl -F / FormData yourself.