Files
2026-10-28 15:08:48 -06:00

32 lines
1.2 KiB
Markdown

---
title: "curl"
category: "Networking and remote access"
tagline: "Transfer data to and from URLs: download files, call APIs, test web servers."
source: "pacman"
package: "curl"
command: "curl"
website: "https://curl.se/"
code: "https://github.com/curl/curl"
links:
- name: "GNU Wget"
url: "https://www.gnu.org/software/wget/"
---
## What it is
curl sends requests to URLs and prints or saves what comes back. It speaks HTTP and HTTPS along with FTP, SFTP and many other protocols, and lets you set headers, methods and request bodies, which makes it the standard tool for testing web APIs and downloading in scripts.
```
curl -L -o file.zip https://example.com/file.zip
```
## Why it's here
- **APIs from the terminal.** Send any HTTP request and see the full response.
- **Downloads in scripts.** Installers and scripts everywhere use it.
- **Debugging web servers.** `curl -I` shows a site's headers and redirects.
## On CoreDesktop
curl is installed from pacman. CoreDesktop also installs GNU Wget, `wget`, which is simpler for downloading files and can fetch whole directories recursively; CoreDesktop's own install command uses it. `update` keeps both current with the pacman packages.