I know that $_POST has a larger size limit than $_GET, but why? What is $_GET limited by?
$_GET
is transferred within the url and is therefore limited by its maximum size. Where there is no theoretical maximum url size defined with the HTTP standard, it is limited by many browsers and servers. Refer to this FAQ which advices your application to use urls that are smaller than 2000 chars
$_POST
is transfererred within the request body which is also theoretical unlimited, but as with $_GET
there are limits by browsers and servers. But they are usually much higher.
For you info: To adjust the maximum post size in php use the ini value
post_max_size=...
This is the way HTTP was defined. GET is intended to be used mainly for getting data, whilst POST is for sending data.
Some details on limitations and differences: http://www.w3schools.com/tags/ref_httpmethods.asp
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