|
Moodle
2.2.1
http://www.collinsharper.com
|

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()) | |
Definition at line 2421 of file filelib.php.
| __construct | ( | $ | options = array() | ) |
object
| array | $options |
Reimplemented in google_authsub_request.
Definition at line 2448 of file filelib.php.

| cleanopt | ( | ) |
Reset http method
Definition at line 2564 of file filelib.php.

HTTP DELETE method
| string | $url | |
| array | $params | |
| array | $options |
Definition at line 2876 of file filelib.php.

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')) ));
| array | $requests | An array of files to request |
| array | $options | An array of options to set |
Definition at line 2694 of file filelib.php.

HTTP GET method
| string | $url | |
| array | $params | |
| array | $options |
Definition at line 2832 of file filelib.php.

| get_info | ( | ) |
| getResponse | ( | ) |
Set HTTP Response Header
Definition at line 2593 of file filelib.php.
HTTP HEAD method
| string | $url | |
| array | $options |
Definition at line 2789 of file filelib.php.

Reimplemented in google_auth_request.
Definition at line 2707 of file filelib.php.

HTTP OPTIONS method
| string | $url | |
| array | $options |
Definition at line 2903 of file filelib.php.


HTTP POST method
| string | $url | |
| array | string | $params | |
| array | $options |
Definition at line 2804 of file filelib.php.


HTTP PUT method
| string | $url | |
| array | $params | |
| array | $options |
Definition at line 2850 of file filelib.php.

Single HTTP Request
| string | $url | The URL to request |
| array | $options |
Reimplemented in google_auth_request.
Definition at line 2743 of file filelib.php.


| resetcookie | ( | ) |
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.


| setHeader | ( | $ | header | ) |
Set HTTP Request Header
| array | $headers |
Definition at line 2580 of file filelib.php.

Set curl options
| array | $options | If array is null, this function will reset the options to default value. |
Definition at line 2550 of file filelib.php.


HTTP TRACE method
| string | $url | |
| array | $options |
Definition at line 2891 of file filelib.php.

| $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.