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
Which php framework is best for web development?
What is php resource type?
Which function parses an English textual date or time into Unix timestamp in PHP.
How to access a global variable inside a function?
What is the difference between die () and exit () in php?
How do I use isdigit function?
Is php strongly typed?
What is move_uploaded_file in php?
How to count a number of words in a string in php?
Explain the casts allowed in PHP?
What do you mean by core php?
Binary tree question - Node has numeric data (int) The function takes depth as argument and sum all the value of the node of the depth. For instance, (0) depth 0 / \ 10 20 depth 1 / \ / \ 40 50 60 70 depth 2 so if you pass get_sum(2), you would return 220 which is 40+50+60+70 (sum of depth2) write the function.
What is the difference between abstract class and interface in php?
Tell me how do I check if a given variable is empty?
What is the w3c?