Subscribe to Subscribers

Resources » .NET programming » General

Methods in HTTP request


Posted Date:     Category: General    
Author: Member Level: Gold    Points: 7


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.





Did you like this resource? Share it with your friends and show your love!


Responses to "Methods in HTTP request"
Feedbacks      

Post Comment:




  • 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:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)



    Type the numbers and letters shown on the left.


    Next Resource: JQuery Selectors
    Previous Resource: Desktop Minicalendar with vb.net
    Return to Resources
    Post New Resource
    Category: General


    Post resources and earn money!
     
    More Resources
    Popular Tags   Tag posting guidelines   Search Tags  
    HTTP methods  .  

    Active Members
    TodayLast 7 Daysmore...

    Awards & Gifts
    Talk to Webmaster Tony John
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
    2005 - 2013 All Rights Reserved.
    .NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
    Articles, tutorials and all other content offered here is for educational purpose only.
    We are not associated with Microsoft or its partners.