Closed matsfeber closed 6 years ago
curl : A method to show your get request in the terminal curl —verbose : Also shows headings
GET : Retrieve data, head and body.
HEAD : Retrieve data, this only retrieves,like it says, the heading.
POST : Add something to a resource. For example you can add sugar to a list of ingredients.
PUT : Also adds something to a resource, but overwrites the resource.
DELETE : Delete a specified resource.
PATCH : Apply modifications.
There are 5 main mime types :
There also are a lot of subtypes for example. text/html and image/png
Mime types allows files to be read the right way, you use it like this:
var mime = { '.html': 'text/html', '.css': 'text/css', '.png': 'image/png', }
1 .1xx range : Informational responses 2 .2xx range : Success 3 .3xx range : Redirection
Good job! 🎉
HTTP cheat-sheet
curl : A method to show your get request in the terminal curl —verbose : Also shows headings
Methodes :
GET : Retrieve data, head and body.
HEAD : Retrieve data, this only retrieves,like it says, the heading.
POST : Add something to a resource. For example you can add sugar to a list of ingredients.
PUT : Also adds something to a resource, but overwrites the resource.
DELETE : Delete a specified resource.
PATCH : Apply modifications.
Mime :
There are 5 main mime types :
There also are a lot of subtypes for example. text/html and image/png
Mime types allows files to be read the right way, you use it like this:
Status :
1 .1xx range : Informational responses 2 .2xx range : Success 3 .3xx range : Redirection