Online Linux Terminal Logo
OnlineLinuxTerminal
Netzwerk & ÜbertragungCLI Manual

$curl

Datenübertragung über Netzwerkprotokolle wie HTTP, HTTPS und REST-APIs.

BefehlssyntaxPOSIX Standard
curl [OPTIONS] [URL...]
Linux-Community2.4k Online

Tausche dich mit Linux-Nutzern aus, lerne Befehle und lade PDF-Cheatsheets herunter.

Live im interaktiven Terminal ausprobieren

Client-seitige Simulation ohne Installation mit sofortigem Feedback.

Im Vollbild-Terminal öffnen ↗
bash — terminal

Überblick & Funktionsweise

curl ist das Standardwerkzeug für Webanfragen, API-Tests und Datei-Downloads im Terminal.

Wichtige Optionen und Flags

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.

Praktische Anwendungsbeispiele

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