$ curl
Transfer data from or to a server
DOCUMENTEDNetworkingUbuntu 24.04 LTS baseline
Synopsis
curl [options] [URL...]
What it does
- `curl` transfers data using supported protocols and is commonly used for HTTP(S).
- `-I` requests headers only for protocols where that operation is supported; `-L` follows HTTP redirects.
Examples
Fetch a web page
curl https://example.com/Show HTTP response headers
curl -I https://example.com/Follow HTTP redirects
curl -L https://example.com/Important details
These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration.
For exact option semantics, the linked authoritative documentation is the source of truth.