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

后端 未结 17 1584
醉话见心
醉话见心 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:00

    GET might be easier to debug 'cause you can monitor all sended values in the adress bar without any additional tools. But there is a limitation of the max. length so with a few variables you may excess this.

    POST isn't much securer these days 'cause with free tools like Fiddler & co. you can grip the values very easy. But there is no real lmitation of the length or amount of values you can submit this way and your URLs are looking more userfriendly.

    So my alltime suggestion would be to use POST instead of GET.

提交回复
热议问题