GET or POST?

GET 还是 POST?

与 POST 相比,GET 更简单也更快,并且在大部分情况下都能用。

GET is simpler and faster than POST, and can be used in most cases.

然而,在以下情况中,请使用 POST 请求:

However, always use POST requests when:

1.无法使用缓存文件(更新服务器上的文件或数据库)

 A cached file is not an option (update a file or database on the server)

2. 向服务器发送大量数据(POST 没有数据量限制)

Sending a large amount of data to the server (POST has no size limitations)

3. 发送包含未知字符的用户输入时,POST 比 GET 更稳定也更可靠

Sending user input (which can contain unknown characters), POST is more robust and secure than GET

posted @ 2011-07-12 23:07  January  阅读(265)  评论(0编辑  收藏  举报