Course 14:get and post are divine horses

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.