Launch your tech mastery with us—your coding journey starts now!
Course Content
Advanced Java

The basic terminology used in servlet are given below:

  1. HTTP
  2. HTTP Request Types
  3. Difference between Get and Post method
  4. Container
  5. Server and Difference between web server and application server
  6. Content Type
  7. Introduction of XML
  8. Deployment

HTTP (Hyper Text Transfer Protocol)

  1. Http is the protocol that allows web servers and browsers to exchange data over the web.
  2. It is a request response protocol.
  3. Http uses reliable TCP connections bydefault on TCP port 80.
  4. It is stateless means each request is considered as the new request. In other words, server doesn’t recognize the user bydefault.

Http Request Methods

Every request has a header that tells the status of the client. There are many request methods. Get and Post requests are mostly used. The http request methods are:

  • GET
  • POST
  • HEAD
  • PUT
  • DELETE
  • OPTIONS
  • TRACE

HTTP Request

Description

GET

Asks to get the resource at the requested URL.

POST

Asks the server to accept the body info attached. It is like GET request with extra info sent with the request.

HEAD

Asks for only the header part of whatever a GET would return. Just like GET but with no body.

TRACE

Asks for the loopback of the request message, for testing or troubleshooting.

PUT

Says to put the enclosed info (the body) at the requested URL.

DELETE

Says to delete the resource at the requested URL.

OPTIONS

Asks for a list of the HTTP methods to which the thing at the request URL can respond