ToolCabana

cURL-zu-fetch-Konverter

Konvertiere unterstützte Befehlsoptionen in bearbeitbare JavaScript-Anfragen.

Favorites are saved in this browser. Find them in My favorites.

cURL-zu-fetch-Konverter

Your input stays in this browser unless stated otherwise
Clear your input, files and result, and restore the default settings.
Load sample text to explore what this tool can do. This replaces your current input.
0 charactersClear the source text.

So verwendest du cURL-zu-fetch-Konverter

The cURL to fetch converter turns a cURL command into JavaScript code that calls fetch with the same URL, method, headers and body, then reads the response as text. It understands -X, -H, -d, --data-raw, --data-binary and --url, and ignores -L, --compressed and -s. It only generates code and never sends the request.

  1. Füge die Quelle in den Eingabe-Editor ein oder lade das integrierte Beispiel.
  2. Prüfe das Quellformat, bevor du den Vorgang ausführst.
  3. Führe den cURL-zu-fetch-Konverter aus, prüfe die Ausgabe und verwende dann die verfügbaren Bedienelemente zum Kopieren oder Herunterladen.

Was dieses Tool unterstützt

Konvertiere unterstützte Befehlsoptionen in bearbeitbare JavaScript-Anfragen.

Grenzen und Verarbeitung

CSV-/XLSX-Eingaben sind auf jeweils 10 MB, 200 Spalten und 20.000 Zeilen begrenzt; die zusammengeführte Ausgabe ist auf 20.000 Zeilen begrenzt. Die Auswertung von JSONPath-Skripten/-Filtern ist deaktiviert. Andere Vorgänge unterliegen ihren sichtbaren Bedienelementen und Textlimits.

Beispielquelle
curl 'https://example.com/api' -X POST -H 'Content-Type: application/json' --data '{"hello":"world"}'

Häufige Fragen

Which cURL options are supported?

Supported options are -X or --request, -H or --header, -d, --data, --data-raw, --data-binary and --url. The flags -L, --location, --compressed, -s and --silent are accepted and ignored. Any other option returns an Unsupported cURL option error naming the flag.

What HTTP method is used when the command has a body?

If the command sends data with -d or a --data variant and no method is set, the converter switches the method from GET to POST, as cURL does. An explicit -X value is kept as written.

Why is my cURL command rejected?

Commands must start with curl, contain one http or https URL and use balanced quotes. Shell substitution with backticks or $( ) is refused, and bodies read from a file with @filename are not supported. Paste the literal body instead.

Wo wird meine Eingabe verarbeitet?

Dieser Vorgang verarbeitet seine Quelle in deinem Browser. Kopieren und Herunterladen sind ausdrückliche Aktionen; die Quelleingabe wird nicht in einem Konto oder Verlauf gespeichert.

Welche Eingabelimits gelten?

CSV-/XLSX-Eingaben sind auf jeweils 10 MB, 200 Spalten und 20.000 Zeilen begrenzt; die zusammengeführte Ausgabe ist auf 20.000 Zeilen begrenzt. Die Auswertung von JSONPath-Skripten/-Filtern ist deaktiviert. Andere Vorgänge unterliegen ihren sichtbaren Bedienelementen und Textlimits.