Http\Request::getPut

public getPut ([mixed $name], [mixed $filters], [mixed $defaultValue], [mixed $notAllowEmpty], [mixed $noRecursive]) Gets a variable from put request //Returns value from $_PUT["user_email"] without sanitizing $userEmail = $request->getPut("user_email"); //Returns value from $_PUT["user_email"] with sanitizing $userEmail = $request->getPut("user_email", "email");

Http\Request::getPost

public getPost ([mixed $name], [mixed $filters], [mixed $defaultValue], [mixed $notAllowEmpty], [mixed $noRecursive]) Gets a variable from the $_POST superglobal applying filters if needed If no parameters are given the $_POST superglobal is returned //Returns value from $_POST["user_email"] without sanitizing $userEmail = $request->getPost("user_email"); //Returns value from $_POST["user_email"] with sanitizing $userEmail = $request->getPost("user_email", "email");

Http\Request::getPort

public getPort () Gets information about the port on which the request is made.

Http\Request::getMethod

final public getMethod () Gets HTTP method which request has been made If the X-HTTP-Method-Override header is set, and if the method is a POST, then it is used to determine the “real” intended HTTP method. The _method request parameter can also be used to determine the HTTP method, but only if setHttpMethodParameterOverride(true) has been called. The method is always an uppercased string.

Http\Request::getLanguages

public getLanguages () Gets languages array and their quality accepted by the browser/client from _SERVER[“HTTP_ACCEPT_LANGUAGE”]

Http\Request::getJsonRawBody

public getJsonRawBody ([mixed $associative]) Gets decoded JSON HTTP raw request body

Http\Request::getHTTPReferer

public getHTTPReferer () Gets web page that refers active request. ie: http://www.google.com

Http\Request::getHttpMethodParameterOverride

public getHttpMethodParameterOverride () ...

Http\Request::getHttpHost

public getHttpHost () Gets host name used by the request. Request::getHttpHost trying to find host name in following order: - $_SERVER[‘HTTP_HOST’] - $_SERVER[‘SERVER_NAME’] - $_SERVER[‘SERVER_ADDR’] Optionally Request::getHttpHost validates and clean host name. The Request::$_strictHostCheck can be used to validate host name. Note: validation and cleaning have a negative performance impact because they use regular expressions. use Phalcon\Http\Request; $request = new Request; $_SERVER['HTT

Http\Request::getHeaders

public getHeaders () Returns the available headers in the request