$curl
Передача данных и выполнение сетевых запросов по протоколам HTTP, HTTPS и REST API.
curl [OPTIONS] [URL...]Попробуйте в интерактивной песочнице
Клиентская симуляция без установки с мгновенным результатом.
Обзор и принцип работы
curl — инструмент командной строки для скачивания файлов, проверки API и отправки HTTP-запросов.
Основные флаги и параметры команды
| Flag / Option | Description |
|---|---|
| -I, --head | Fetch HTTP response headers only without downloading body. |
| -L, --location | Follow 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. |
Практические примеры использования
curl -I https://onlinelinuxterminal.comFetches HTTP status code, content-type, cache-control, and server headers.
curl -O https://example.com/archive.zipDownloads archive.zip preserving remote file name.
Похожие команды Linux
Non-interactive network downloader for HTTP, HTTPS, and FTP.
Send ICMP ECHO_REQUEST to network hosts to test connectivity and latency.
Print network connections, routing tables, interface statistics, and listening ports.
Securely log into remote Linux servers and execute commands over encrypted connections.
Securely copy files and directories between hosts over SSH connection.
Fast and versatile remote and local file-copying and synchronization tool.