HTTP Methods
Question:
Describe what HTTP methods are. Explain the different kinds of HTTP methods and what each is supposed to represent.
HTTP methods
When you think of HTTP methods think of it as a way for a client and server to communicate with each other. This is because HTTP works as a request-response protocol. We send out a request method to a serve an we get something back or give something to the server. Let’s break down the various methods that we may see or use at some point.
GET
The GET method is used to request data from a server that it wants.
HEAD
The HEAD is similar to GET in that it request specified resource to be sent back but the difference is that it does not get the body of information back but just the heading. This is useful if you just want to know if the info exist before you use the GET method.
POST
This method is used to send data to the server that will in effect modify the server in some way as in the holding of new information
PUT
This method is used to show what ways we can communicate with a server. If we send an options request to a specific server than we will receive back that we can use GET,HEAD, or POST for example.