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.

Implementing a GET request in a web app

Implementing a GET request in a web app

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

Start my 1-month free trial

Implementing a GET request in a web app

- [Instructor] Now let us dive into what is a GET request. A GET request as we said is a question from the client to the server to get or retrieve information for the user. And that information could either be a text file or it could be a PDF or a Word document or it could be an audio or a video or even for that matter an entire HTML content. Now, when you make a GET request, you can send data along with it and the data that is sent out is always in the form of a query string which is exposed or visible in the URL, which is why GET request is considered to be an insecure request. Moreover, the data that is sent along in a GET request is of limited size. The max is eight KB, of course, with a few caveats because that would depend upon the browser and the server configuration. GET request is an idempotent request. What it essentially means that whenever you access the URL pattern of Servlet and make a GET request you are basically going to get information. So it is not going to change…

Contents