How should I choose between GET and POST methods in HTML forms?

后端 未结 17 1575
醉话见心
醉话见心 2020-11-27 18:42

I wish to know all the pros and cons about using these two methods. In particular the implications on web security.

Thanks.

17条回答
  •  抹茶落季
    2020-11-27 19:06

    Both set of values is easily monitored by hackers or other stuff, but GET is less secure in the way that its very visible what the values are (right in the addressbar).

    Use SSL for security if that is needed.

    A good advice: Always use POST for forms, use querystrings (?value=products), when you are not posting things, but are trying to GET a specific page, like a product page. Hence the names POST and GET :)

提交回复
热议问题