Home » Php » php – Is GET method is faster than POST?

php – Is GET method is faster than POST?

Posted by: admin July 12, 2020 Leave a comment

Questions:

Possible Duplicate:
Why GET method is faster than POST?

I use both methods for transfering data but not decide which is faster and recommended.

How to&Answers:

GET may be considered slightly faster in that it contains less overhead, but the difference should be essentially negligible. The difference between the two is based on other factors. There’s lots of discussion here.

Answer:

The choice of method ought to be made on what the action is doing not on which is faster. Use GET for actions that obtain data. Use POST for actions that create/modify data. Using a GET for an action that creates or modifies data can have awful consequences if the URL is bookmarked.