The difference between post and get in Ajax-http

Source: Internet
Author: User

HTTP:

Post and get are two methods in the HTTP protocol. The interaction of the browser and the server is performed through the HTTP protocol, and his full name is Hyper Text Transfer Protocol (Hypertext Transfer Protocol). HTTP is to allow the client and the server between the request and consent, HTTP, the browser and the server to communicate, define the different methods

There are four basic methods: (These four methods can be understood as, the server resources of the search, change, increase, delete.) )

    • Get: Get data from the server, so-called check, just to get the server resources, not to modify.
    • Post: Submitting data to the server, which involves updating the data, that is, changing the server's data.
    • Put:put's English meaning is to place, that is, to add new data to the server, that is, the so-called increase.
    • Delete: As you can see in the literal sense, this is the process of deleting server data.

Get:
    • Get interaction is secured by fetching data from the server and not modifying the data.
    • Get interactive mode is idempotent, idempotent is a mathematical concept, idempotent function is can be repeated with the same parameters, and get the same result function. Get here for multiple requests to the same URL, the result is the same

Post:

Post interaction is a way to modify the server data, involving the modification of the information, there will be security issues.

The difference between post and get in Ajax-http

Related Article

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.