How much data can be sent via $_GET in PHP5? Is there a maximum number of variables, string length etc? Thanks in advance.
There is no defined limit, according to the RFC. If you are using a web browser for GET , then you are generally going to be limited to around 2K for the full URL. For POST , you are unlikely to hit a limit at any practical level.
GET requests shouldn't exceed 1-4 kilobytes in size due to browser and server limitations. You would have to split your request in chunks to do this. If the data comes from a form, you could, for example utilize jQuery's . serialize() function to put the data into one string.
GET is an HTTP method for requesting data from the server. Requests using the HTTP GET method should only fetch data, cannot enclose data in the body of a GET message, and should not have any other effect on data on the server.
Although the specification of the HTTP protocol does not specify any maximum length, practical limits are imposed by web browser and server software.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With