What is the maximum value that can be passed by get and post?

Source: Internet
Author: User

What is the maximum value that can be passed by get and post?
The day before yesterday, I saw this problem. I have no in-depth understanding. In my common sense, the maximum value of get is 256b, and the value of post is 2 MB. This was not seen long ago.
So Baidu again. You can see the following two articles:


Differences between get and post in HTTP
The maximum length of the get value.
There are some reasons. Some of these ideas are cited:

Get
First, "the data submitted in get mode can only be 1024 bytes". Because get submits data through a URL, the amount of data that can be submitted by get is directly related to the URL length. In fact, the URL does not have a parameter ceiling. The HTTP protocol does not limit the URL length. This restriction is imposed by specific browsers and servers. The length of the URL is limited to 2083 bytes (2 k + 35) by IE ). For other browsers, such as Netscape and Firefox, there is no length limit theoretically. The limit depends on the support of the operating system. Note that this limit is the length of the entire URL, not just the length of your parameter value.

[Size of data submitted in get mode. Http does not have a hard limit. It is related to browsers, servers, and operating systems. In the second article, we talked about using Apache for testing. Using the get method, the URL can be up to 8167b. Among them, there are also reasons for talking about proxy in The Post message. Maybe the URL is too long to be served, and it has been rejected by the proxy. In the first article, I learned something from the discussion ~ ]

Post
Theoretically, there is no size limit on post and no size limit on HTTP specifications. it is inaccurate to say that "the size of post data is limited to 80 K/K, there is no limit on post data, and the restriction is the processing capability of the server's processing program.
For ASP programs, there is a K data length limit when the request object processes each form field. However, if request. binaryread is used, there is no such restriction.

With this extension, Microsoft has increased its restrictions for IIS 6.0 for security reasons. Note:

1). By default, IIS 6.0 has a maximum ASP post data volume of KB, and each form field is limited to kb.
2). By default, IIS 6.0 uploads a file up to 4 MB.
3). By default, the maximum request header of IIS 6.0 is 16 kb.
These restrictions are not available before IIS 6.0. [See References 5]

Therefore, the 80 K and K values above may only be the default values (Note: I have not confirmed the IIS4 and iis5 parameters), but they must be set by myself. Because the default values of these parameters are different for IIS in each version, refer to the relevant IIS configuration documents for details.

[In post mode, there is no theoretical limit on the maximum data transfer, depending on the server settings and memory size .]

What is the maximum value that can be passed by get and post?

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.