Although GET requests are the most common, there are, perhaps, three request types that are commonly used. The three common HTTP request types are as follows:
- GET is used when the client wants to download a resource.
- HEAD is just like GET, except that the client only wants information about the resource instead of the resource itself. For example, if the client only wants to know the size of a hosted file, it could send a HEAD request.
- POST is used when the client needs to send information to the server. Your web browser typically uses a POST request when you submit an online form, for example. A POST request will typically cause a web server to change its state somehow. A web server could send an email, update a database, ...