I\'ve come across a couple of popular PHP-related answers recently that suggested using the superglobal $_REQUEST
, which I think of as code smell, because it re
$_REQUEST
is problematic because it ignores the difference between URL ($_GET
) and request body ($_POST
). A HTTP-GET request should be without side-effects, while a HTTP-POST may have side-effects and thus can't be cached. Throwing these quite different data sources into one bucket, calls for applications that are un-REST-ful, which is to say bad applications.