Convertidor de cURL a código
Convierte un comando curl en código JavaScript fetch, Node.js, Python requests o PHP cURL.
Cómo usar
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.
Preguntas frecuentes
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.
Herramientas relacionadas
Analizador de URL
Divide una URL en protocolo, host, puerto, ruta, consulta y fragmento, e inspecciona cada parámetro.
Referencia de códigos de estado HTTP
Consulta cualquier código de estado HTTP con su nombre y una breve explicación de cuándo se devuelve.
Probador de JSONPath
Consulta datos JSON con expresiones JSONPath y ve los valores coincidentes al instante.
Formateador HTML
Embellece HTML con sangría uniforme manteniendo correctos los elementos en línea y vacíos.
Formateador CSS
Embellece CSS con una propiedad por línea y sangría uniforme.
Formateador JavaScript
Embellece JavaScript con la sangría, el espaciado y los saltos de línea adecuados.