In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is about the differences between get and post. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
GET request this is a GET request with only one request header, and parameters are passed by adding parameters to the URL. POST request this is an POST request with a form data behind the request header. Identical point
Most of the content of the request header is the same, except for some differences, which are the methods used to access the server.
Differences
When GET requests POST request parameters to be passed, the parameters will be placed after url.
The request is separated from the parameter, and the parameter is uploaded as data carried alone. Whether there are parameters passed in the url as a bookmark can be saved as a bookmark. Because the bookmark holds the url, and the url in the post request has no parameters, it cannot be saved as a bookmark. The parameters of the security request are directly exposed in the url and cannot be used as user name and password requests. Although the parameters can also be viewed, they are not directly exposed (relatively safe) like the get method. Length limit because url has a maximum length limit, the parameters of the get request also have a length limit. The parameters of the post request are sent independently, and a large amount of data can be sent. Idempotent (that is, whether the operation affects the state of the server) the get request is idempotent. Post requests are not idempotent. The function get request is used for information acquisition. Post can also be used for information acquisition, but it is more of a request to modify resources on the server. How to get the value of the backend use Request.QueryString to get the value of the variable. Use Request.Form to get the submitted data. When using in data query, it is recommended to use get mode. When adding, deleting and changing data, it is recommended to use post. Thank you for reading! This is the end of the article on "what are the differences between get and post". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.