- Published on
Short engineering note
Today I Learnt: Fetch a URL with curl
- Authors

- Name
- Mehdi Akiki
Note · Engineering notes
Basic GET:
curl -sS https://example.com
Download to a file:
curl -sS -o page.html https://example.com
Show response headers without downloading the response body:
curl -I https://example.com
Use -L when the request should follow redirects.