Cheatsheets

HTTP cheatsheet

Methods, status classes, and curl one-liners.

Methods

Command / topicWhat it does
GETRead a resource
POSTCreate or trigger an action
PUT / PATCHReplace or partially update
DELETERemove a resource

Status classes

Command / topicWhat it does
2xxSuccess
3xxRedirect
4xxClient error
5xxServer error

curl

Command / topicWhat it does
curl -i URLInclude response headers
curl -X POST -H 'Content-Type: application/json' -d '{}' URLJSON POST
curl -o file URLDownload to a file
curl -w '%{time_total}\n' -o /dev/null -s URLTotal request time

← All cheatsheets · Courses