LiuL0703 / blog

https://liul0703.github.io
38 stars 11 forks source link

GET与POST异同 #13

Open LiuL0703 opened 6 years ago

LiuL0703 commented 6 years ago

POST & GET 区别

何时使用:

Quick Checklist for Choosing HTTP GET or POST Use GET if:The interaction is more like a question (i.e., it is a safe operation such as a query, read operation, or lookup).

Use POST if:The interaction is more like an order, or The interaction changes the state of the resource in a way that the user would perceive (e.g., a subscription to a service), or The user be held accountable for the results of the interaction.However, before the final decision to use HTTP GET or POST, please also consider considerations for sensitive data and practical considerations.