Request SERVER vars
Last updated
Last updated
Request returns $_SERVER
variables, f.ex.
Method | Return value |
---|---|
* Cloudflare proxy only
Request::useragent()
$_SERVER['HTTP_USER_AGENT']
Request::referer()
$_SERVER['HTTP_REFERER']
Request::method()
$_SERVER['REQUEST_METHOD']
Request::uri()
$_SERVER['REQUEST_URI']
Request::ip()
$_SERVER['REMOTE_ADDR']
Request::host()
$_SERVER['SERVER_NAME']
Request::locale()
$_SERVER['HTTP_ACCEPT_LANGUAGE']
Request::lang()
$_SERVER['LANGUAGE']
Request::country()
$_SERVER['HTTP_CF_IPCOUNTRY'] *
Request::time()
$_SERVER['REQUEST_TIME']