About

Tool No. 44 of Pikkola

A curl command is one line that carries six things at once: a method, an address, a query string, headers, credentials and a body. Written by hand it is readable to the person who wrote it and to almost no one else, and the line that arrives in a ticket is usually the one nobody wants to rewrite. This page takes it apart, shows each part where curl would put it, writes it back out, and gives the same request to eight clients.

What it does

What the rebuild changes

The request stays the same. The text does not, and it is worth knowing why. Flags are written in one order, one per line, so a diff of two commands shows what actually changed. Quoting is made safe: a value with a space or an apostrophe is quoted so the shell passes it through whole. --request GET is left out, because GET is what curl does when nothing is said, and flags the page does not read are dropped and named in the notes.

What it deliberately does not do

It does not send the request. A live request is a test against someone else's server, and a test belongs to a tool you already trust, with your cookies and your network. It does not fetch a URL, resolve a host, or check whether an endpoint exists. It does not tell you whether a key is valid, and it cannot tell whether a string is a secret: a key pasted into a command is already in the shell history, and the page says so rather than hiding it.

Where the draft lives

In this browser's local storage, under one key, so a reload does not lose work. Nothing is sent anywhere. The page's own content policy sets connect-src to none, which means a request could not leave even if one were attempted.

Questions and corrections: [email protected]