what is the difference between GET and POST?

Answer Posted / waqas

GET
GET is small and can be sent quickly
a lot of devices - such as mobile devices can send get
requests easily and thus GET is excellent for REST
apis(webservice)
GET can be used with POST
GET can be Bookmarked in a browser
GET method is default method
We have to encode URL if we

POST
For sending secure information POST is prefered
GET url can be copied and pasted in a messenger - and your
friend will see the same page - this is impossible to do
with post
We can pass unlimited data by this method as query string

Is This Answer Correct ?    25 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the scope of variables means?

579


What is mysql_fetch_array?

519


How cookies are transported from servers to browsers?

513


What are the methods useful for method overloading?

524


Explain what are the two main string operators?

506






When should you use a stored procedure?

498


What is overriding in php?

607


How to convert strings to numbers in php?

551


What is the main difference between asp net and php?

527


Which is better get or post method?

455


What are the different errors in php?

558


What is an anti csrf token?

496


Name some of the constants in php and their purpose.

531


Why echo is faster than print in php?

516


What PHP stands for?

568