1

I was studying HTML and I saw that when someone is making a form the safest method is POST. So why someone should choose GET method? And when we choose GET or POST method?

ManosL
  • 23
  • 3
  • 1
    _“when someone is making a form the safest method is POST”_ - that is an absolute nonsense statement. GET vs POST has absolutely zero point zero to do with “safety”. – CBroe Jul 05 '18 at 10:34
  • CBroe to be honest I read that on w3schools – ManosL Jul 05 '18 at 10:42

1 Answers1

0

GET is used to view something without changing it. POST is used to change something. Suppose if you have a search page- it should use GET; but if you want to change password then POST is used. One big reason is that Get requests can remain in browser history and it has length restrictions. On the other hand, POST requests are not cached and can't be bookmarked.

Raj
  • 3
  • 2
  • *GET is used to view something without changing it.* Wrong. You can very well use GET to change something and POST without changing it. – Filnor Jul 05 '18 at 11:42