Tools

curl Cheat Sheet

Print-ready cheat sheet for curl, organized for fast lookup, study, and desk-side use

Source
curl Documentation (curl.se/docs)
License
MIT
Updated
2026-03-27

Sample

What's in this cheat sheet

  • Basic Usage
  • HTTP Methods
  • Headers
  • Authentication
  • Data & Forms
  • SSL/TLS
  • Output & Debugging
  • Common Patterns
  • Proxy & Network
  • Config & Advanced

Simple Requests

curl https://example.com          # GET request
curl -o file.html https://url     # save to file
curl -O https://url/file.tar.gz   # save with remote name
curl -L https://url               # follow redirects

Common Flags

-sSilent mode (no progress)
-SShow errors in silent mode
-fFail silently on HTTP errors
-LFollow redirects
-o fileWrite output to file
-OSave with remote filename
-C -Resume interrupted download
--max-time 30Timeout after 30 seconds

Download the full cheat sheet for all sections, formatted for print

Download PDF

Downloads

Choose the treatment that matches how you read