Online Linux Terminal Logo
OnlineLinuxTerminal
Réseau et transfertCLI Manual

$curl

Transférer des données depuis ou vers un serveur via HTTP, HTTPS et API REST.

Syntaxe de la commandePOSIX Standard
curl [OPTIONS] [URL...]
Communauté Linux2.4k En ligne

Échangez avec des utilisateurs Linux, apprenez des commandes et téléchargez des PDF.

Essayer en direct dans le bac à sable interactif

Simulation côté client sans installation avec retour instantané.

Ouvrir dans le terminal plein écran ↗
bash — terminal

Aperçu et fonctionnement

curl est l'outil en ligne de commande pour envoyer des requêtes HTTP et tester des API.

Options et drapeaux courants

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.

Exemples pratiques du monde réel

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