Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » GET vs POST

GET vs POST

1. GET requests can be cached and bookmarked. They can only request data and cannot modify it. Therefore, they should be avoided when dealing with sensitive data.
2. Unlike GET, POST requests can never be cached and they do not stay in the browser history. They cannot be bookmarked and have absolutely no restriction on data length.
3. POST is more secure compared to the GET method because data is part of the URL when it is sent through GET thereby making it visible to everyone and more vulnerable.

Example of POST in PHP
Example of POST in PHP
How to read POST variables in PHP
Read POST variables in PHP