Moodle  2.2.1
http://www.collinsharper.com
curl Class Reference
Inheritance diagram for curl:

Public Member Functions

 __construct ($options=array())
 resetopt ()
 resetcookie ()
 setopt ($options=array())
 cleanopt ()
 setHeader ($header)
 getResponse ()
 download ($requests, $options=array())
 head ($url, $options=array())
 post ($url, $params= '', $options=array())
 get ($url, $params=array(), $options=array())
 put ($url, $params=array(), $options=array())
 delete ($url, $param=array(), $options=array())
 trace ($url, $options=array())
 options ($url, $options=array())
 get_info ()

Data Fields

 $cache = false
 $proxy = false
 $version = '0.4 dev'
 $response = array()
 $header = array()
 $info
 $error

Protected Member Functions

 multi ($requests, $options=array())
 request ($url, $options=array())

Detailed Description

Definition at line 2421 of file filelib.php.


Constructor & Destructor Documentation

__construct ( options = array())

object

Parameters:
array$options

Reimplemented in google_authsub_request.

Definition at line 2448 of file filelib.php.

Here is the call graph for this function:


Member Function Documentation

cleanopt ( )

Reset http method

Definition at line 2564 of file filelib.php.

Here is the call graph for this function:

delete ( url,
param = array(),
options = array() 
)

HTTP DELETE method

Parameters:
string$url
array$params
array$options
Returns:
bool

Definition at line 2876 of file filelib.php.

Here is the call graph for this function:

download ( requests,
options = array() 
)

Download multiple files in parallel

Calls multi() with specific download headers

$c = new curl; $c->download(array( array('url'=>'http://localhost/', 'file'=>fopen('a', 'wb')), array('url'=>'http://localhost/20/', 'file'=>fopen('b', 'wb')) ));

Parameters:
array$requestsAn array of files to request
array$optionsAn array of options to set
Returns:
array An array of results

Definition at line 2694 of file filelib.php.

Here is the call graph for this function:

get ( url,
params = array(),
options = array() 
)

HTTP GET method

Parameters:
string$url
array$params
array$options
Returns:
bool

Definition at line 2832 of file filelib.php.

Here is the call graph for this function:

get_info ( )

Definition at line 2908 of file filelib.php.

Here is the call graph for this function:

Set HTTP Response Header

Definition at line 2593 of file filelib.php.

head ( url,
options = array() 
)

HTTP HEAD method

See also:
request()
Parameters:
string$url
array$options
Returns:
bool

Definition at line 2789 of file filelib.php.

Here is the call graph for this function:

multi ( requests,
options = array() 
) [protected]

Reimplemented in google_auth_request.

Definition at line 2707 of file filelib.php.

Here is the caller graph for this function:

options ( url,
options = array() 
)

HTTP OPTIONS method

Parameters:
string$url
array$options
Returns:
bool

Definition at line 2903 of file filelib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

post ( url,
params = '',
options = array() 
)

HTTP POST method

Parameters:
string$url
array | string$params
array$options
Returns:
bool

Definition at line 2804 of file filelib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

put ( url,
params = array(),
options = array() 
)

HTTP PUT method

Parameters:
string$url
array$params
array$options
Returns:
bool

Definition at line 2850 of file filelib.php.

Here is the call graph for this function:

request ( url,
options = array() 
) [protected]

Single HTTP Request

Parameters:
string$urlThe URL to request
array$options
Returns:
bool

Reimplemented in google_auth_request.

Definition at line 2743 of file filelib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Reset Cookie

Definition at line 2531 of file filelib.php.

resetopt ( )

Resets the CURL options that have already been set

Definition at line 2505 of file filelib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setHeader ( header)

Set HTTP Request Header

Parameters:
array$headers

Definition at line 2580 of file filelib.php.

Here is the caller graph for this function:

setopt ( options = array())

Set curl options

Parameters:
array$optionsIf array is null, this function will reset the options to default value.

Definition at line 2550 of file filelib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

trace ( url,
options = array() 
)

HTTP TRACE method

Parameters:
string$url
array$options
Returns:
bool

Definition at line 2891 of file filelib.php.

Here is the call graph for this function:


Field Documentation

$cache = false

Definition at line 2423 of file filelib.php.

Definition at line 2432 of file filelib.php.

$header = array()

Definition at line 2429 of file filelib.php.

$info

Definition at line 2431 of file filelib.php.

$proxy = false

Definition at line 2424 of file filelib.php.

Definition at line 2428 of file filelib.php.

$version = '0.4 dev'

Definition at line 2426 of file filelib.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations