GET Vs POST
GET Vs POST
Note that the query string (name/value pairs) is sent in the URL of a GET request:
/test/demo_form.php?name1=value1&name2=value2
The data sent to the server with POST is stored in the request body of the HTTP request:
name1=value1&name2=value2
GET POST
Restrictions on Yes, when sending data, the GET method adds the data No restrictions
data length to the URL; and the length of a URL is limited
(maximum URL length is 2048 characters)
Security GET is less secure compared to POST because data sent POST is a little safer
is part of the URL than GET because the
parameters are not
Never use GET when sending passwords or other stored in browser
sensitive information! history or in web
server logs