HTTP/1.1 Request Methods

The GET Method
The GET method is the most common HTTP request method used to send HTTP requests. The main function of this method involves requesting resources on the Web server. The request is sent to the Web server through a valid URL.

The HEAD Method
The HEAD method is somewhat similar to the GET method, as this request method also involves sending requests to the Web server. The only difference between the GET request method and the HEAD request method is that, unlike the GET request, the HEAD request method doesn’t return a message body to the client. The purpose of this request method is only to return HTTP headers.

The POST Method
The POST request method is the one most commonly used to retrieve information entered in Web forms. The POST request method tells the server to receive requests sent by the client and transfers data from the client to the server.

The PUT Method
The PUT method requires the client to send a request to a server. In this type of request, after the client sends the request, the server either accepts or rejects the request. If the server accepts the request, it saves the information received from the client in a file.

The OPTIONS Method
The Web server provides certain communications options that are used by clients to communicate with the server. You use the OPTIONS request method to request the communication options offered by the server. After requesting the connection options, the client computer can negotiate an appropriate set of communication parameters with the server.

The TRACE Method
The TRACE method is ideally used for testing purposes. This method helps simulate how a server sees a request on the client’s computer.

The DELETE Method
When the client computer sends a request, the URL points to a resource on the server. The DELETE method, as its name suggests, is used to delete the resource identified in the request URL.

The CONNECT Method
The CONNECT method allows a Web proxy to tunnel the connection between the client and the server, which means that this method is not actually proxying the request.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s