GET

 

                       POST

In browser history parameters remain because they are the part of the URL In browser history parameters remain because they are the part of the URL
It can be bookmarked It cannot be bookmarked
If the HTML is stored in the browser cache, GET requests are re-executed but may not be re-submitted to server

 

The browser alerts the user that data will need to be re-submitted
It can send but the parameter data is limited to what we can stuff into the URL It can send parameters, including uploading files to the server
Hacking becomes easier for script kiddies Hacking becomes more difficult
There is restriction on form data type, only ASCII characters allowed There is no restrictions. Binary data is also allowed
PHP GET method is less secure than POST because data sent is part of the URL. So, its saved in browser history or server logs in plaintext PHP POST is little safer than GET because the parameters are not stored in browser history or web- server logs
There are restrictions on form data length There are no restrictions on form data length
GET method should not be used while sending passwords or other sensitive information POST method used when sending passwords or other sensitive information.
GET method is visible to everyone in address bar and it has limits on amount of information to send POST method variables are not displayed in the URL
It can be cached It cannot be cached

Categorized in: