ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
__construct ($a_url= '') | |
Constructor. | |
getResponseHeader () | |
Get response header as string. | |
getResponseHeaderArray () | |
Get response header as array. | |
init () | |
Init curl connection. | |
setOpt ($a_option, $a_value) | |
Wrapper for curl_setopt. | |
exec () | |
Wrapper for curl_exec. | |
getInfo ($opt=0) | |
Get informations about a specific transfer. | |
close () | |
Close connection. | |
__destruct () | |
Destructor. |
Static Public Member Functions | |
static | _isCurlExtensionLoaded () |
Check if curl extension is loaded. |
Protected Attributes | |
$url = '' | |
$ch = null |
Private Member Functions | |
parseHeader ($handle, $header) | |
Parse respone header. |
Private Attributes | |
$header_plain = '' | |
$header_arr = array() |
Definition at line 38 of file class.ilCurlConnection.php.
ilCurlConnection::__construct | ( | $a_url = '' | ) |
Constructor.
public
string | url for connection |
ilCurlConnectionException |
Definition at line 54 of file class.ilCurlConnection.php.
ilCurlConnection::__destruct | ( | ) |
Destructor.
public
Definition at line 232 of file class.ilCurlConnection.php.
References close().
|
staticfinal |
Check if curl extension is loaded.
public
Definition at line 71 of file class.ilCurlConnection.php.
|
final |
Close connection.
public
Definition at line 217 of file class.ilCurlConnection.php.
Referenced by __destruct().
|
final |
Wrapper for curl_exec.
public
Definition at line 153 of file class.ilCurlConnection.php.
References $res.
ilCurlConnection::getInfo | ( | $opt = 0 | ) |
ilCurlConnection::getResponseHeader | ( | ) |
Get response header as string.
Definition at line 84 of file class.ilCurlConnection.php.
References $header_plain.
Referenced by parseHeader().
ilCurlConnection::getResponseHeaderArray | ( | ) |
Get response header as array.
Definition at line 93 of file class.ilCurlConnection.php.
References $header_arr.
|
final |
Init curl connection.
public
ilCurlConnectionException | on error |
Definition at line 105 of file class.ilCurlConnection.php.
Referenced by ilECSConnector\prepareConnection().
|
private |
Parse respone header.
mixed | $handle | |
string | $header |
Definition at line 198 of file class.ilCurlConnection.php.
References getResponseHeader().
|
final |
Wrapper for curl_setopt.
public
int | CURL_OPTION |
mixed | bool string or resource |
ilCurlConnectionException | on error |
Definition at line 137 of file class.ilCurlConnection.php.
|
protected |
Definition at line 41 of file class.ilCurlConnection.php.
|
private |
Definition at line 44 of file class.ilCurlConnection.php.
Referenced by getResponseHeaderArray().
|
private |
Definition at line 43 of file class.ilCurlConnection.php.
Referenced by getResponseHeader().
|
protected |
Definition at line 40 of file class.ilCurlConnection.php.