Two commands supported by HTTP include GET and POST.
GET allows a browser to ask for a page or file in a URL, and POST allows a browser to send additional data to the server that is hidden from the URL. Both of these are requests we can make to a server, which will provide a response in return.
application/x-www-form-urlencoded: the keys and values are encoded in key-value tuples separated by
'&', with a
'='between the key and the value. Non-alphanumeric characters in both keys and values are URL encoded: this is the reason why this type is not suitable to use with binary data (use
multipart/form-data: each value is sent as a block of data (“body part”), with a user agent-defined delimiter (“boundary”) separating each part. The keys are given in the
Content-Dispositionheader of each part.
PATCH request method applies partial modifications to a resource.
HEAD method asks for a response identical to a
GET request, but without the response body.