← back to flaviocopes.com

Route → curl

← All tools

Describe an HTTP request and copy a ready-to-run curl command — plus fetch() and httpie equivalents.

~~~

Method

URL

Final URL:

Path parameters

Query parameters

KeyValue

Headers

OnKeyValue

JSON body

Invalid JSON —

~~~

Nothing is stored in the URL — tokens and bodies stay in memory only.

~~~

About this tool

When you're debugging an API, you often need the same request as a curl one-liner to share with a teammate or paste into a ticket. This builds that command from the pieces you'd put in Postman or Insomnia: method, URL, headers, query string, and JSON body.

Path params like :id are detected from the URL. JSON bodies are validated before they're embedded in the output.

~~~

Read more