比较有用的宗旨

来源:互联网 发布:北京租房 知乎 编辑:程序博客网 时间:2024/05/16 00:27

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

However, always use POST requests when:

A cached file is not an option (update a file or database on the server)
Sending a large amount of data to the server (POST has no size limitations)
Sending user input (which can contain unknown characters), POST is more robust and secure than GET

原创粉丝点击