Max url length before pho $_GET not set

software development


I have a problem. When I pass a query string to a simple php script on dreamhost (storm), the php $_GET array is not set if the query string is more than ~540 chars.

This works

This does not work

prx.php looks like:
$abc = isset($_GET[‘abc’])?$_GET[‘abc’]:false;
if (!$abc) {
header(“HTTP/1.0 400 Bad Request”);
echo "prx.php failed because abc parameter is missing… “;
echo “

the _GET array looks like this…

else {
echo "

the _GET array looks like…


The total url char size is 564 (minus the leading domain name and http it’s 541)

This seems a low max url char count for apache to be configured, the default seems to be in the thousands.

Is there anyway to confirm why it acts like this on dreamhost, and if there is a way around it?

Thanks in advanced for any help



DH has a security package Suhosin installed, which will make limits like this. Maybe you can disable it … I don’t know how, actually.

But Suhosin is there for a purpose - to prevent typical attacks.