Methods
| Command / topic | What it does |
GET | Read a resource |
POST | Create or trigger an action |
PUT / PATCH | Replace or partially update |
DELETE | Remove a resource |
Status classes
| Command / topic | What it does |
2xx | Success |
3xx | Redirect |
4xx | Client error |
5xx | Server error |
curl
| Command / topic | What it does |
curl -i URL | Include response headers |
curl -X POST -H 'Content-Type: application/json' -d '{}' URL | JSON POST |
curl -o file URL | Download to a file |
curl -w '%{time_total}\n' -o /dev/null -s URL | Total request time |
← All cheatsheets · Courses