Online Linux Terminal Logo
OnlineLinuxTerminal
Red y transferenciaCLI Manual

$curl

Transfiera datos desde o hacia un servidor de red usando HTTP, HTTPS y API REST.

Sintaxis del comandoPOSIX Standard
curl [OPTIONS] [URL...]
Comunidad Linux2.4k En línea

Chatea con usuarios de Linux, aprende comandos y descarga guías PDF.

Prueba en vivo en la terminal interactiva

Simulación del lado del cliente sin instalación y con respuesta inmediata.

Abrir en terminal de pantalla completa ↗
bash — terminal

Descripción general y funcionamiento

curl permite interactuar con servicios web, descargar archivos y realizar solicitudes HTTP.

Opciones y banderas comunes

Flag / OptionDescription
-I, --headFetch HTTP response headers only without downloading body.
-L, --locationFollow HTTP 301/302 redirects automatically.
-X, --request [METHOD]Specify custom HTTP request method (GET, POST, PUT, DELETE).
-d, --data [data]Send POST data payload in request body.
-H, --header [header]Pass custom HTTP request header (e.g., "Authorization: Bearer token").
-o [file]Write output to file instead of stdout.

Ejemplos prácticos del mundo real

#1Inspect HTTP response headers of a website
curl -I https://onlinelinuxterminal.com

Fetches HTTP status code, content-type, cache-control, and server headers.

#2Download a remote file
curl -O https://example.com/archive.zip

Downloads archive.zip preserving remote file name.