+ 6
Wait so why is POST safer than GET?
9 Answers
+ 4
because get will reflect the input value but post is not and that's why is safe for generating password forms etc.
+ 3
because GET will display the value you inputted from the form to the URL unlike the POST, it is invisible
+ 2
both are equally unsafe if user input is not validated.
+ 1
POST is safer than GET as it's hidden not in the URL like GET method
+ 1
Its simple bro, when you are submitting the data from input field if it is not confidential like "username" then you will use GET, and if you are submitting some private information like "password" then you have to use POST method.
Note : using GET method will reflect your input field data in URL unlike not in POST method, That's Post is safer then Get method.
0
post is safer than get
0
As you know, in GET method the values are visible in the URL:
http://example.com/login.php?name=foo&pass=bar
As you see, the name and pass are visible.
Although You can encode them for example to base64. however they are visible.
but in POST method, parameters are inside request body not in URL.
Note:
Both POST and GET are not completely safe. we have to make them safe.
but between them, POST is safer.
0
When we use GET method, we can see our name and password at URL.
So hackers may hack our account.
- 3
Of course POST!