StoicBuilder

HandbookV the OfficinaCopy as cURL

Vthe Officina, Use the tools

Copy as cURL

1 min readUpdated 28 November

In plain words

Copy as cURL turns a request from the Network tab into one terminal command, headers and body included, that you can rerun or paste into an HTTP client.

Where you see it

Right-click a request in the Network tab, choose Copy, then Copy as cURL; on Windows there's a (cmd) and a (bash) version. The command is written for curl, a command-line tool for sending requests that ships with macOS and Windows, and Postman, Insomnia and Bruno can turn it into a saved request.

Terminalterminal
curl 'https://quickbite.example/api/orders' \ -H 'content-type: application/json' \ -H 'cookie: session=REDACTED' \ --data-raw '{"restaurantId":7,"items":[{"id":12,"quantity":2}]}'
What Chrome copies, trimmed. The cookie line is your login, so it never goes into a chat or a ticket.

What goes wrong

  1. Sharing it with your login inside

    The copied command carries your cookies and Authorization header. Anyone who gets it can act as you until the session ends, so replace those values before you share it.

  2. The wrong version for your terminal

    The bash and cmd versions quote things differently, and in older Windows PowerShell curl is an alias for a different command. Match the copy to your terminal, or type curl.exe.

  3. Replaying a request that changes data

    Rerunning a copied POST places the order again, and a copied DELETE deletes again. Change the address to your local server before you press Enter.

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
Below is a request copied as cURL from the Network tab, with the cookie and token replaced by REDACTED. Explain in plain English what it sends, then help me rerun it against my local server so we can reproduce the bug.

Quick check

Sign in to earn +10 XP for it

You want your agent's help with a failing request, so you copy it as cURL. What do you do before pasting it into the chat?

Got a prompt that touches copy as cURL?

Paste it. You get a better prompt first, then the cards that explain it.

Check your own prompt

Free, no sign-up.