Why is the GET method faster than POST in HTTP?

后端 未结 8 2041
暗喜
暗喜 2020-11-30 02:53

I am new to web programming and just curious to know about the GET and POST methods of sending data from one page to another.

It is said that the GET method is faste

8条回答
  •  遥遥无期
    2020-11-30 03:42

    POST will grow your headers more, just making it larger, but the difference ought to be negligible really, so I don't see why this should be a concern.

    Just bear in mind that the proper way to speak HTTP is to use GET only for actions and POST for data. You don't have to, but you also don't want to have a case where Google bots can, for example, insert, delete or manipulate data that was only meant for a human to handle simply because it is following the links it finds.

提交回复
热议问题