# Convertitore da cURL a fetch

> Converti le opzioni di comando supportate in richieste JavaScript modificabili.

[Open tool](https://www.toolcabana.com/it/curl-to-fetch-converter) · [Utilità per sviluppatori](https://www.toolcabana.com/it/category/developer-utilities)

Tool ID: curl-to-fetch-converter. Requested language: it. Description language: it. Complete guide translation: yes.

## Overview (en)

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.

## Supported tasks (it)

Converti le opzioni di comando supportate in richieste JavaScript modificabili.

## Steps (it)

1. Incolla l'origine nell'editor di input, oppure carica l'esempio integrato.
2. Controlla il formato di origine prima di eseguire l'operazione.
3. Esegui il convertitore da cURL a fetch, esamina il risultato, poi usa i controlli disponibili per copiare o scaricare.

## Settings

No additional settings.

## Limitations (it)

Gli input CSV/XLSX sono limitati a 10 MB ciascuno, 200 colonne e 20.000 righe; l'output unito è limitato a 20.000 righe. La valutazione di script e filtri JSONPath è disabilitata. Le altre operazioni applicano i controlli visibili e i limiti di testo.

## Example input

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

## Privacy and connections (it)

Questa operazione elabora i dati di origine nel tuo browser. Copia e download sono azioni esplicite; l'input di origine non viene salvato in un account né in una cronologia.

## Questions (it)

### 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.

### Dove viene elaborato il mio input?

Questa operazione elabora i dati di origine nel tuo browser. Copia e download sono azioni esplicite; l'input di origine non viene salvato in un account né in una cronologia.

### Quali sono i limiti di input?

Gli input CSV/XLSX sono limitati a 10 MB ciascuno, 200 colonne e 20.000 righe; l'output unito è limitato a 20.000 righe. La valutazione di script e filtri JSONPath è disabilitata. Le altre operazioni applicano i controlli visibili e i limiti di testo.

## Related tools

- [JSONPath explorer](https://www.toolcabana.com/it/jsonpath-explorer)
- [JSON to Zod schema generator](https://www.toolcabana.com/it/json-to-zod-schema-generator)
- [Unix permissions calculator](https://www.toolcabana.com/it/unix-permissions-calculator)
- [Semver range tester](https://www.toolcabana.com/it/semver-range-tester)
