开发者

Is GET method is faster than POST? [duplicate]

This question already has answers here: 开发者_如何学编程 Closed 12 years ago.

Possible Duplicate:

Why GET method is faster than POST?

I use both methods for transfering data but not decide which is faster and recommended.


GET may be considered slightly faster in that it contains less overhead, but the difference should be essentially negligible. The difference between the two is based on other factors. There's lots of discussion here.


The choice of method ought to be made on what the action is doing not on which is faster. Use GET for actions that obtain data. Use POST for actions that create/modify data. Using a GET for an action that creates or modifies data can have awful consequences if the URL is bookmarked.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜