HTTP
- HTTP is a protocol which is used by client and server to communicate on web.
- HTTP is stateless protocol i.e http clients can make only one request at per connection. Means http clients connects to server to send one request and disconnects.This mechanism allows more users to connect to the specific server over given period of time.
HTTP METHODS
Normally Get and Post method is used to send the request to server.
Get
It is used to retrieve the information from server.In this method the contents are exposed in URL,so it is not secured.Data is sent in header to the server.
It can send only limited amount of data.Get contents can be Bookmarked.
Post
Request for server to accept the entity enclosed in the body of HTTP method.Data are not exposed in URL,so it is more secured.Large amount of data can be sent. Post request can not be Bookmarked. Data is sent in body of request.
Anatomy of Get request
Anatomy of Post request


No comments:
Post a Comment