How much data can be sent through $ _GET

How much data can be sent via $ _GET in PHP5? Maximum number of variables, string length, etc.? Thanks in advance.

+7
php get
source share
3 answers

Although the HTTP protocol specification does not indicate a maximum length, practical restrictions are imposed by the web browser and server software:

http://www.boutell.com/newfaq/misc/urllength.html

+6
source share

There are no restrictions in the RFC, but browsers limit the length of the URL (including get variables). For example, IE limits the URL length to 2083 characters, Opera to about 4050, Netscape 6 to about 2000 characters. The general rule is that you should not use more than 256 characters.

+2
source share

There is not only a limitation of PHP, but you should also consider "intermediate" proxies and client software.

However, the http standard does not create restrictions.

(I got this from here , where the advice should not exceed 255 char urls!)

+2
source share

All Articles