BenTheDesigner
BenTheDesigner

Reputation: 1984

How much data can be sent via $_GET

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

Upvotes: 7

Views: 3324

Answers (3)

Stefan Gehrig
Stefan Gehrig

Reputation: 83622

Although the specification of the HTTP protocol does not specify any maximum length, practical limits are imposed by web browser and server software.

Upvotes: 6

xtofl
xtofl

Reputation: 41509

There is not only the PHP limitation, but you should also consider 'in between' proxies and the client software.

The http standard doesn't pose a limitation, though.

(I got this from here, where advice is to not exceed 255 char's urls!)

Upvotes: 2

softcr
softcr

Reputation: 620

There is no limit defined in the RFC, but browsers limit the URL length (including get variables). IE for instance limits the URL length to 2083 characters, Opera about 4,050, Netscape 6 about 2,000 characters. A general rule of thumb is, that you shouldnt use more than 256 characters.

Upvotes: 2

Related Questions