Get post differences for Java

Source: Internet
Author: User
Tags html header http post
1. Get is the data that is fetched from the server and post is the data sent to the server. The GET request returns any information indicated by Request-uri.
A Post request is used to send e-mail, news, or a form that can be filled by an interactive user. This is the only request to send the body in the request. The length of the body needs to be indicated in the message header content-length field when using the POST request.
2. Get is the URL where the parameter data queue is added to the Action property of the submission form, and the value corresponds to the field one by one in the form, which is visible in the URL. Post is an HTTP post mechanism that places the fields within the form and their contents in the HTML header, along with the URL address referred to by the Action property, which is not visible to the user.
3. For Get mode, the server side uses Request.QueryString to get the value of the variable, and for post, the server side uses Request.Form to obtain the submitted data.
4. Get transmits a small amount of data, cannot be greater than 2KB. Post transmits a large amount of data, which is generally not restricted by default. In theory, however, the maximum amount of IIS4 is 100KB in 80KB,IIS5. With the IIS filter only accept get parameters, so the general large search engine is get way.
5. Get security is very low and post security is relatively high. If the data is in Chinese and is non-sensitive, use get, or use post if the data entered by the user is not a Chinese character and contains sensitive data.

Get post differences for Java

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.