If you're just starting with how to use curl, here’s a quick cheat sheet:
- Download: `curl -o filename.txt [url]`
- POST data: `curl -d "param1=value1" [url]`
- Auth: `curl -u username:password [url]`
For cleaner output, pipe to `less` (`curl [url] | less`) or use `-sS` to hide progress but show errors.
Watch out for SSL cert issues—`-k` skips verification (useful for testing, but insecure!).
- Download: `curl -o filename.txt [url]`
- POST data: `curl -d "param1=value1" [url]`
- Auth: `curl -u username:password [url]`
For cleaner output, pipe to `less` (`curl [url] | less`) or use `-sS` to hide progress but show errors.
Watch out for SSL cert issues—`-k` skips verification (useful for testing, but insecure!).
