XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | List of all members
HTTP_Request Class Reference
Inheritance diagram for HTTP_Request:
HTTP_Request2

Public Member Functions

 addHeader ($name, $value)
 
 sendRequest ($saveBody=true)
 
 getResponseCode ()
 
 getResponseHeader ()
 
 getResponseBody ()
 
 getResponseCookies ()
 
 addPostData ($name, $value, $preencoded=false)
 
- Public Member Functions inherited from HTTP_Request2
 __construct ($url=null, $method=self::METHOD_GET, array $config=array())
 
 setUrl ($url)
 
 getUrl ()
 
 setMethod ($method)
 
 getMethod ()
 
 setConfig ($nameOrConfig, $value=null)
 
 getConfig ($name=null)
 
 setAuth ($user, $password= '', $scheme=self::AUTH_BASIC)
 
 getAuth ()
 
 setHeader ($name, $value=null, $replace=true)
 
 getHeaders ()
 
 addCookie ($name, $value)
 
 setBody ($body, $isFilename=false)
 
 getBody ()
 
 addUpload ($fieldName, $filename, $sendFilename=null, $contentType=null)
 
 addPostParameter ($name, $value=null)
 
 attach (SplObserver $observer)
 
 detach (SplObserver $observer)
 
 notify ()
 
 setLastEvent ($name, $data=null)
 
 getLastEvent ()
 
 setAdapter ($adapter)
 
 setCookieJar ($jar=true)
 
 getCookieJar ()
 
 send ()
 

Additional Inherited Members

- Public Attributes inherited from HTTP_Request2
const METHOD_OPTIONS = 'OPTIONS'
 
const METHOD_GET = 'GET'
 
const METHOD_HEAD = 'HEAD'
 
const METHOD_POST = 'POST'
 
const METHOD_PUT = 'PUT'
 
const METHOD_DELETE = 'DELETE'
 
const METHOD_TRACE = 'TRACE'
 
const METHOD_CONNECT = 'CONNECT'
 
const AUTH_BASIC = 'basic'
 
const AUTH_DIGEST = 'digest'
 
const REGEXP_INVALID_TOKEN = '![\x00-\x1f\x7f-\xff()<>@,;:\\\\"/\[\]?={}\s]!'
 
const REGEXP_INVALID_COOKIE = '/[\s,;]/'
 
- Protected Member Functions inherited from HTTP_Request2
 fopenWrapper ($file, $detectType=false)
 
- Static Protected Member Functions inherited from HTTP_Request2
static detectMimeType ($filename)
 
- Protected Attributes inherited from HTTP_Request2
 $observers = array()
 
 $url
 
 $method = self::METHOD_GET
 
 $auth
 
 $headers = array()
 
 $config
 
 $lastEvent
 
 $body = ''
 
 $postParams = array()
 
 $uploads = array()
 
 $adapter
 
 $cookieJar = null
 

Detailed Description

Definition at line 4 of file Request.php.

Member Function Documentation

HTTP_Request::addHeader (   $name,
  $value 
)

Definition at line 8 of file Request.php.

HTTP_Request::addPostData (   $name,
  $value,
  $preencoded = false 
)

Definition at line 48 of file Request.php.

HTTP_Request::getResponseBody ( )

Definition at line 34 of file Request.php.

HTTP_Request::getResponseCode ( )

Definition at line 20 of file Request.php.

HTTP_Request::getResponseCookies ( )

Definition at line 41 of file Request.php.

HTTP_Request::getResponseHeader ( )

Definition at line 27 of file Request.php.

HTTP_Request::sendRequest (   $saveBody = true)

Definition at line 13 of file Request.php.


The documentation for this class was generated from the following file: