954,576 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

which method work fast GET() or POST() ?

which method work fast GET() or POST() ?

survesunny18186
Newbie Poster
1 post since Sep 2009
Reputation Points: 10
Solved Threads: 0
 

Most find that speed is not the issue
post is better for some purposes, get for others
this discussion may help
http://stackoverflow.com/questions/1211881/why-get-method-is-faster-than-post

almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
 
Most find that speed is not the issue post is better for some purposes, get for others this discussion may help http://stackoverflow.com/questions/1211881/why-get-method-is-faster-than-post

Something not mentioned on that link is that POST requests are not cached. GET requests are, and thus reduce the load on your server. Subsequent requests using GET will appear much faster, since the request will actually be taken mostly from the browsers cache, and or intermediate HTTP caches. So for anything that doesn't modify data on your server, use a GET. If you want the data to never be cached, use post.

digital-ether
Nearly a Posting Virtuoso
Moderator
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101
 
Something not mentioned on that link is that POST requests are not cached. GET requests are, and thus reduce the load on your server. Subsequent requests using GET will appear much faster, since the request will actually be taken mostly from the browsers cache, and or intermediate HTTP caches. So for anything that doesn't modify data on your server, use a GET. If you want the data to never be cached, use post.

Thanks, another bit I didn't know

almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
 

If you want to follow REST or RESTful urls such as the REST architecture states (which seems to be getting more popular) then GET and POST have two very different uses. GET should be used to 'get' data while POST should be used to 'post' or 'create new instances of' types of requests.

GET/POST/PUT/DELETE all have their purposed but people are using them without keeping their initial purpose in mind.

More info here:
http://en.wikipedia.org/wiki/Representational_State_Transfer

mazeroth
Light Poster
27 posts since Jan 2009
Reputation Points: 10
Solved Threads: 5
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You