Methods in HTTP request


There are nine methods used in the HTTP requests. They are classified under two categories called safe methods and idempotent methods. Idempotent methods cause side effects on the server and Safe methods are less harmful.

HTTP methods



1.HEAD,
2.GET,
3.OPTIONS,
4.TRACE,
5.POST,
6.PUT ,
7.DELETE,
8.CONNECT,
9.PATCH

Safe Methods


HEAD, GET, OPTIONS, TRACE are the safe methods. Because these methods only get information from the server and does not change the sever states.

Idempotent Methods


POST, PUT , DELETE these methods may cause sever side effects.

GET


Get request for the contents of specified page or representation of specified page. We can use conditions in retrieval of contents.

Request example:

GET http://www.dotnetspider.com/member/somasekar.aspx


HEAD


Head methods requests for the header information for a given URL. So it wont cause any effect in server.

Example request:

HEAD http://www.dotnetspider.com/member/somasekar.aspx


OPTIONS


Options method returns the methods available to the current URL.

Example request:

OPTIONS * HTTP/1.1
Host: http://www.dotnetspider.com


TRACE


Trace method returns the received request, it is used to track the request originality.

Example request:

TRACE http://www.dotnetspider.com/member/somasekar.aspx


POST


Post method send data to be used in server side. that can be manipulated in server.

PUT


Modifies the representation of the specified URL components.

DELETE


Deletes the representation of the specified URL components.

PATCH


Used for partial modifications

CONNECT


Used for switch dynamically to a network tunnel.


Comments

Guest Author: Edna10 Jun 2012

said it was recently played, will try again later. Can I do this more than once from the same device? I've got my phone and my computer so I'm gonna do it twice for sure. But will do it as often as they'll allow of course.



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: