Toolvist

Constructor de comandos curl

Crea un comando curl visualmente: define método, cabeceras, cuerpo y autenticación, y copia la línea lista para ejecutar. Constructor curl online con vista previa.

One header per line, in name: value form.

Constructor de comandos cURL gratuito

El Constructor de comandos cURL crea comandos curl listos para ejecutar sin memorizar las banderas. Elige un método, introduce la URL, añade cabeceras y un cuerpo, y copia el comando terminado.

The reverse conversion is the cURL to Fetch Converter, and the equivalent client-side form is produced by the Postman to Fetch Converter. To inspect what the command returns, the HTTP Header Checker reads the response.

Cómo usar Constructor curl

  1. 1 Choose the HTTP method.
  2. 2 Enter the URL and add query parameters.
  3. 3 Add request headers, and a body for the methods that carry one.
  4. 4 Copy the generated curl command.

Cómo usarlo

Rellena el método, la URL y cualquier cabecera o cuerpo, luego haz clic en Construir. El comando curl completo aparece debajo y se actualiza mientras editas.

  • Todos los métodos comunes: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
  • Añade cabeceras ilimitadas y un cuerpo de petición
  • Basic auth opcional y seguimiento de redirecciones
  • Entrecomilla correctamente los valores que contienen espacios
  • Se ejecuta enteramente en tu navegador

Preguntas frecuentes

When should I use -d rather than --data-binary?

`-d` strips newlines from the value and sets a form-encoded content type by default. For JSON payloads, `--data-binary` preserves the payload exactly and you set the content type header explicitly. Using `-d` with JSON that contains newlines silently alters what is sent, which produces confusing server errors.

What do the -s and -v flags do?

`-s` suppresses the progress meter, which is what you want in a script. `-v` prints the full request and response including headers, which is what you want when debugging. They solve opposite problems, and using `-v` while capturing output to a file usually means the headers end up in the file.

How do I send a request that does not follow redirects?

Curl does not follow redirects by default, which is worth knowing because the opposite is often assumed. Adding the follow flag makes it follow them, and the location flag restricts how many hops it will accept. For debugging an authentication flow, following redirects while printing each response is often the clearest way to see what happens.

Herramientas para desarrolladores relacionadas

Ver todo en Herramientas para desarrolladores →

También te puede interesar

Herramientas de otras categorías que suelen combinarse con Constructor curl:

Explorar el directorio completo →