Http://www.codeschool.cn/lesson/14.html
Get and post are God horses?
Get and Post are two of the most common types of requests in HTTP
Simple understanding of Get requests
Get requests are used to get information (no modification operation)
1. Commonly used for overall page refresh
For example: The browser is now Baidu's home page www.baidu.com, click Post-paste after the overall refresh to the bar tieba.baidu.com, the entire browser page has been re-refreshed
2. Parameters are in the URL, often used for the overall page jump
For example:http://tieba.baidu.com/f?kw=123&ie=utf-8&fr=wwwt
Simple comprehension of Post requests
Post requests are used for modification operations (new, modified, deleted), and local refresh
1. Often used for page partial refresh
For example: Click Baidu in the user login, trigger https://passport.baidu.com/v2/api/?login
2. Parameters can be transferred in the body, without parameters in the URL
For example: Click on the Baidu User login, trigger https://passport.baidu.com/v2/api/?login, the user name and password are passed through the body of the request, and is not placed in the URL
Course 14:get and post are divine horses