Class X2HttpRequest
CHttpRequest encapsulates the $_SERVER variable and resolves its inconsistency among different Web servers.
CHttpRequest also manages the cookies sent from and sent to the user. By
setting CHttpRequest::$enableCookieValidation
to true, cookies sent from the user will
be validated to see if they are tampered. The property getCookies
cookies returns the collection of cookies. For more details, see CCookieCollection.
CHttpRequest is a default application component loaded by CWebApplication. It can be accessed via CWebApplication::getRequest().
- CComponent
- CApplicationComponent implements IApplicationComponent
- CHttpRequest
- X2HttpRequest
Package: system\web
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/protected/components/X2HttpRequest.php
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/protected/components/X2HttpRequest.php
public
|
#
validateCsrfToken( CEvent $event )
Override parent method to prevent csrf token validation during whitelisted requests |
public
|
compareAcceptTypes(),
createCsrfCookie(),
decodePathInfo(),
getAcceptTypes(),
getBaseUrl(),
getBrowser(),
getCookies(),
getCsrfToken(),
getDelete(),
getHostInfo(),
getHttpVersion(),
getIsAjaxRequest(),
getIsDeleteRequest(),
getIsDeleteViaPostRequest(),
getIsFlashRequest(),
getIsPatchRequest(),
getIsPatchViaPostRequest(),
getIsPostRequest(),
getIsPutRequest(),
getIsPutViaPostRequest(),
getIsSecureConnection(),
getParam(),
getPatch(),
getPathInfo(),
getPort(),
getPost(),
getPreferredAcceptType(),
getPreferredAcceptTypes(),
getPreferredLanguage(),
getPreferredLanguages(),
getPut(),
getQuery(),
getQueryString(),
getRawBody(),
getRequestType(),
getRequestUri(),
getRestParams(),
getScriptFile(),
getScriptUrl(),
getSecurePort(),
getServerName(),
getServerPort(),
getUrl(),
getUrlReferrer(),
getUserAgent(),
getUserHost(),
getUserHostAddress(),
init(),
normalizeRequest(),
parseAcceptHeader(),
sendFile(),
setBaseUrl(),
setHostInfo(),
setPort(),
setScriptUrl(),
setSecurePort(),
stripSlashes(),
xSendFile()
|
getIsInitialized()
|
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
$csrfCookie,
$csrfTokenName,
$enableCookieValidation,
$enableCsrfValidation
|
$behaviors
|
$acceptTypes,
$baseUrl,
$browser,
$csrfToken,
$hostInfo,
$isAjaxRequest,
$isDeleteRequest,
$isFlashRequest,
$isPatchRequest,
$isPostRequest,
$isPutRequest,
$isSecureConnection,
$pathInfo,
$port,
$preferredAcceptType,
$preferredAcceptTypes,
$preferredLanguage,
$preferredLanguages,
$queryString,
$requestType,
$requestUri,
$scriptFile,
$scriptUrl,
$securePort,
$serverName,
$serverPort,
$url,
$urlReferrer,
$userAgent,
$userHost,
$userHostAddress
|
$isInitialized
|