From the course: Java EE: Servlets and JavaServer Pages (JSP)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Types of HTTP requests

Types of HTTP requests

From the course: Java EE: Servlets and JavaServer Pages (JSP)

Start my 1-month free trial

Types of HTTP requests

- [Instructor] Now that we know the basic setup of the project and the requisites, what we are going to do is we are going to first look at the types of HTTP requests that we have. We know that HTTP is the communication protocol between the client and the server, and every request that is made from the client to the server is of a type. The first one among them is the GET request, which is simply used to get or retrieve information from the server side. The next one is POST, which is used to process or manipulate information on the server side. So if you make a post request, you're going to change the data on the server side. Next is PUT, which is going to upload the definition of a resource on the server. As for the DELETE, it is going to delete a resource from the server. HEAD is going to be the same as a get request; but it is only going to return with the header information, not the body of the response. And when you talk about OPTIONS, options is basically that kind of a request…

Contents