Convertitore da cURL a codice
Trasforma un comando curl in codice JavaScript fetch, Node.js, Python requests o PHP cURL.
Come usare
Using the generated code
Paste any curl command, including multi-line commands with backslashes, then choose the target language. Headers, the HTTP method and the request body are preserved.
- Copy a curl command from an API's documentation.
- Paste it and pick a language.
- Copy the snippet into your project.
Domande frequenti
Which curl options are supported?
Requests, headers, data, user credentials, cookies and common flags. Options that do not change the request, such as -s or -L, are ignored.
Is my command sent anywhere?
No, the parsing and code generation run entirely in the browser.
Strumenti correlati
Analizzatore di URL
Scomponi un URL in protocollo, host, porta, percorso, query e frammento e ispeziona ogni parametro.
Riferimento codici di stato HTTP
Cerca ogni codice di stato HTTP con nome e breve spiegazione di quando viene restituito.
Tester JSONPath
Interroga dati JSON con espressioni JSONPath e visualizza subito i valori corrispondenti.
Formattatore HTML
Abbellisce l'HTML con indentazione uniforme mantenendo corretti gli elementi inline e void.
Formattatore CSS
Abbellisce il CSS con una proprietà per riga e indentazione uniforme.
Formattatore JavaScript
Abbellisce il JavaScript con indentazione, spaziatura e ritorni a capo corretti.