Mehdi Akiki
Published on

Short engineering note

Today I Learnt: Fetch a URL with curl

Authors
  • Mehdi Akiki avatar
    Name
    Mehdi Akiki
    Twitter

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.