943,906 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1108
  • PHP RSS
Sep 7th, 2009
0

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

Expand Post »
which method work fast GET() or POST() ?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
survesunny18186 is offline Offline
1 posts
since Sep 2009
Sep 7th, 2009
0

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

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/1...ster-than-post
Reputation Points: 562
Solved Threads: 368
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009
Sep 8th, 2009
1

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

Click to Expand / Collapse  Quote originally posted by almostbob ...
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/1...ster-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.
Moderator
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
digital-ether is offline Offline
1,250 posts
since Sep 2005
Sep 8th, 2009
0

Re: which method work fast GET() or 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.
Thanks, another bit I didn't know
Reputation Points: 562
Solved Threads: 368
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009
Sep 8th, 2009
0

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

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/Represe...State_Transfer
Reputation Points: 10
Solved Threads: 5
Light Poster
mazeroth is offline Offline
27 posts
since Jan 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Error when refreshing template in PhpBB3
Next Thread in PHP Forum Timeline: How to configure Mozilla Firefox in using PHP





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC