Current location - Loan Platform Complete Network - Big data management - php get pass the value of the maximum
php get pass the value of the maximum
Various web development languages, each page between the basic data transfer, web development inside the more commonly used data transfer methods get

post, I have always known that the amount of data transfer get to pass the amount of data than post to pass the amount of data to be less, so the transfer of large amounts of data or to post, but get post

The maximum amount of data these two ways can be passed

The maximum amount of data that can be passed

What is the maximum amount of data that can be passed?

How much data can be passed in these two ways? I've never been able to figure it out.

Today, due to the needs of the work, but also have to understand the problem a little bit, the following GET and POST to pass the maximum length of the data can reach how much it.

get

is to submit data through the URL, so the amount of data that can be submitted by GET is directly related to the maximum length of the URL. A lot of articles say that GET can only submit data up to 1024 bytes, and

In fact, there is no parameter limit for URLs, and the HTTP protocol specification does not limit the length of URLs. This limit is a browser-specific and server-specific limit on it.IE's limit on URL length

is 2083 bytes (2K + 35 bytes). For other browsers, such as FireFox, Netscape, etc., there is no length limit, and at this time its limit depends on the server's operating system. I.e.

If the url is too long, the server may reject the request due to security settings or an incomplete data request may occur.

post

Theoretically, there is no size limit, and the HTTP protocol specification does not have a size limit, but in practice the amount of data that can be passed in a post depends on the server's settings and memory size. Because we generally

post the amount of data is rarely more than MB, so we can rarely feel the post data size limit, but in practice if you upload files in the process may find such a problem, that is, uploading the head of a relatively

big file to the server, may not be uploaded to the php language, check the cause of when you may be see that PHP upload files involved in the parameters of the default PHP upload limit, the general value is 2MB, change this value need to change the value of php.conf post_max_size. This is a very clear explanation of the problem.