Question:

What is the difference between GET and POST?

Answer:

– GET displays the submitted data as part of the URL, during POST this information is not shown as it’s encoded in the request.
– GET can handle a maximum of 2048 characters, POST has no such restrictions.
– GET allows only ASCII data, POST has no restrictions, binary data are also allowed.
– Normally GET is used to retrieve data while POST to insert and update.

Understanding the fundamentals of the HTTP protocol is very important to have a good start as a PHP developer, and the differences between GET and POST are an essential part of it.


Keywords:

© 2017 QuizBucket.org