Use Guide
| Goal | Command |
|---|
| Debug request | curl -v |
| Check status | curl -I |
| API call 🔥 | curl -X + -d + -H |
| Follow redirect | curl -L |
| Save file | curl -o file.html https://example.com |
| Ignore SSL ⚠️ | curl -k |
1️⃣ Basic Request
curl https://example.com
curl -I https://example.com
- Check status code + headers
3️⃣ Follow Redirects
curl -L https://example.com
- Handles 301/302 redirects
4️⃣ Custom HTTP Method
curl -X POST https://example.com/api
- Supports
GET, POST, PUT, DELETE
curl -X POST https://example.com/api \
-d "name=omi&age=25"
6️⃣ JSON API Call
curl -X POST https://example.com/api \
-H "Content-Type: application/json" \
-d '{"name":"omi"}'
curl -H "Authorization: Bearer token" \
-H "Accept: application/json" \
https://example.com
8️⃣ Ignore SSL
curl -k https://example.com
- Skip SSL verification (debug only)
🔥 Most Useful Combo
curl -v -L https://example.com