Skip to content
cosmodev ~/tools/curl-builder

Δημιουργός εντολών cURL

Generators

Σύνθεσε μια εντολή curl έτοιμη για αντιγραφή από μια φόρμα: μέθοδος, επικεφαλίδες, σώμα, auth και flags — οι τιμές περικλείονται με ασφάλεια σύμφωνα με POSIX. Επικόλλησε υπάρχουσα εντολή για να την εισαγάγεις ξανά. Λειτουργεί τοπικά με κοινόχρηστο σύνδεσμο.

Επικεφαλίδες
-k ανασφαλές
-L ακολούθα ανακατευθύνσεις
--compressed
-I μόνο επικεφαλίδες

(Τεκμηρίωση στα αγγλικά)

What it does

Turns a form into a copy-paste curl command: method, URL, headers, body, basic auth and the common flags (-I, -k, -L, --compressed). Every value is single-quoted the POSIX way — embedded quotes, spaces and JSON braces all survive a real shell. The flag order is fixed and deterministic: -X, headers in insertion order, -u, -d, boolean flags, URL last. Paste an existing command into the importer and it fills the form back in (unknown flags are noted, not lost). Everything runs locally in your browser.

How to use it

  1. Pick a method and type the URL (must start with http(s)://, / or $ for a variable).
  2. Add headers row by row; type a body for -d.
  3. Flip the flags you need under the body.
  4. The command appears on the right — Copy takes it, shell-ready.
  5. To reverse-engineer a command: paste it under Paste a command to import and tap Import command.
  6. Copy share link encodes the whole request in the URL.

Examples

A POST with a JSON body:

curl -X POST -H 'Content-Type: application/json' -d '{"name":"ada"}' 'https://api.example.dev/v1/users'

A tricky value stays intact — the quote escaping is the POSIX '\'' form:

body it's a "test" → -d 'it'\''s a "test"'

Import round-trip: paste the POST above into the importer and the form fills with method POST, the header, the body and the URL.

What the builder guarantees

Rule Why
values single-quoted, ' → '\'' safe in POSIX shells, no injection through values
URL must start http(s)://, / or $ catches paste accidents before they become broken commands
header names: letters, digits, hyphens mirrors what HTTP field names allow
fixed flag order diffs between two commands mean input differences, nothing else
-X omitted for GET the curl default, shorter commands

Auth is included with -u as user:password — the command carries credentials, so think before pasting it into tickets or chats.

Πηγαίος κώδικας14 γλώσσες

100% client-side · τα δεδομένα σου δεν φεύγουν ποτέ από τον browser. Σου φάνηκε χρήσιμο; Μοιράσου το με έναν συναδέλφο.