Method
HTTP defines a set of request methods, outlined in Table
7-2. A client can use one of these request methods to
send a request message to an HTTP server.
Table 7-2 Request MethodsMethodExplanationG
E
TA client can use a GET request to get a web resource
from the server.H
E
A
DA client can use a HEAD request to get the header that a
GET request would have obtained. Because the header
contains the last-modified date of the data, it can be used
to check against the local cache copy.P
O
S
TA client can use a POST request to post data or add new
data to the server.P
U
TA client can use a PUT request to ask a server to store or
update data.P
A
T
C
HA client can use a PATCH request to ask a server to
partially store or update data.D E L E T E
A client can use a DELETE request to ask a server to
delete data.