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

Reply

Join Date: Sep 2009
Posts: 1
Reputation: survesunny18186 is an unknown quantity at this point 
Solved Threads: 0
survesunny18186 survesunny18186 is offline Offline
Newbie Poster

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

 
0
  #1
Sep 7th, 2009
which method work fast GET() or POST() ?
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,398
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 170
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

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

 
0
  #2
Sep 7th, 2009
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
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,087
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

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

 
1
  #3
Sep 8th, 2009
Originally Posted by almostbob View 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
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.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,398
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 170
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

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

 
0
  #4
Sep 8th, 2009
Originally Posted by digital-ether View 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
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 16
Reputation: mazeroth is an unknown quantity at this point 
Solved Threads: 3
mazeroth mazeroth is offline Offline
Newbie Poster

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

 
0
  #5
Sep 8th, 2009
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 385 | Replies: 4
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC