|
The basic terminology used in servlet are given below:
|
HTTP (Hyper Text Transfer Protocol)
- Http is the protocol that allows web servers and browsers to exchange data over the web.
- It is a request response protocol.
- Http uses reliable TCP connections bydefault on TCP port 80.
- 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 |