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

- Name
- Mehdi Akiki
Basic GET:
curl -sS https://example.com
Download to a file:
curl -sS -o page.html https://example.com
Tip: -I fetches headers, -L follows redirects.
title: "Today I Learnt: Fetch a URL with curl" date: "2025-09-16" tags: ["bash", "til"] draft: false summary: "Download or view an HTTP response."
Fetch a URL and show response headers:
curl -I https://example.com
I build and scale reliable production systems. Open to full-time and freelance work with U.S.-based teams that value ownership and execution.
Got something in mind?
Book a Discovery Call