Monday 28 October 2013

What is HTTP?Two HTTP Request Methods: GET and POST

The Hypertext Transfer Protocol (Http) is intended to empower correspondences between customers and servers.

Http functions as an appeal reaction convention between a customer and server.

A web browser may be the customer, and a provision on a machine that has a site may be the server.

Case: A customer (browser) submits a Http solicit to the server; then the server returns a reaction to the customer. The reaction holds status data about the solicitation and might likewise hold the solicited substance.

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

The GET Method

Some other notes on GET requests:

GET requests can be cached
GET requests remain in the browser history
GET requests can be bookmarked
GET requests should never be used when dealing with sensitive data
GET requests have length restrictions
GET requests should be used only to retrieve data

The POST Method

Some other notes on POST requests:

POST requests are never cached
POST requests do not remain in the browser history
POST requests cannot be bookmarked
POST requests have no restrictions on data length

Other HTTP Request Methods


Method                                                          Description
HEAD                        Same as GET but returns only HTTP headers and no document body
PUT                              Uploads a representation of the specified URI
DELETE                      Deletes the specified resource
OPTIONS              Returns the HTTP methods that the server supports
CONNECT              Converts the request connection to a transparent TCP/IP tunnel


No comments:

Post a Comment

Thank to you