In this video we will see :
- Http methods
- Get
- Post
- When to use get method and when to use post method
- Controlling the method of request in servlet
- doGet() method in Servlet
- doPost() method in Servlet
- service() method in Serrvlet
- working example of doGet() method
- working example of doPost() method
HTTP works as a request-response protocol between a client and server.
Two commonly used methods for a request-response between a client and server are: GET and POST.
GET - Requests data from a specified resource.
POST - Submits data to be processed to a specified resource.