Get&post: Get
: (1) suitable for the power of the request (the so-called power is that multiple requests to return the same result), (2) Append data to the URL sent, the browser and the server will limit the length of the URL, so get request sent a small amount of data, (3) Get the value as a name/ The value pair form is passed in the URL, the end of the resource URL ends with a name/value pair, the name/value is in the form of Name=value, and each name/value pair is separated by &.
Post: (1) The Post method should be used to change the state on the server, (2) The Content-type header of the Xml-httprequest object needs to be set, for example: Xmlhttp.setrequestheader (" Content-type, "Application-......."); (3) Unlike get, it does not limit the net load to the server, can send arbitrary amount of data, (4) If the data model is changed by storing, updating data or sending e-mail, then the Post method is recommended. (5) Similar to get method, the post parameter code takes the parameter name/value form, but the Post method sends the parameter string in the request body.
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.