Web Development SUBJECT CODE: 3151606 B.E. 5TH Semester
Difference GET v/s POST
No. GET POST GET is less secure compared to POST is a little safer than GET POST because data sent is part of because the parameters are not 1 the URL stored in browser history or in web server logs Data is visible to everyone in the Data is not displayed in the URL 2 URL $_GET[] is used to request data $_POST is used to request data 3 from a specified resource. from a specified resource. GET Parameters remain in POST Parameters are not saved in 4 browser history browser history 5 GET requests can be cached POST requests are never cached GET requests remain in the POST requests do not remain in 6 browser history the browser history GET requests can be bookmarked POST requests cannot be 7 bookmarked In GET method we can not send In POST method large amount of large amount of data rather data can be sent because the 8 limited data is sent because the request parameter is appended request parameter is appended into the body. into the URL. GET requests have length POST requests have no 9 restrictions restrictions on data length In GET method Only ASCII POST there is no restrictions. 10 characters allowed Binary data is also allowed Data passed through GET method Data passed through POST 11 can be easily stolen by attackers. method can not be easily stolen by attackers.