$r->custom_response(Apache2::Const::HTTP_REQUEST_ENTITY_TOO_LARGE,"Bad
request");
}
return Apache2::Const::OK
}
That way you don't have to duplicate the logic of the check yourself,
you're just arranging for a customized response when it fails.
--
Mark J. Reed
_type("text/plain");
> $r->print ("Too Large, Bye!!");
> #Send xml delimited back to the client assuming it will not continue
> sending this request to mod_jk worker
> }
>
> return Apache2::Const::HTTP_REQUEST_ENTITY_TOO_LARGE; # Return back to client
>
--
Mark J. Reed