ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct ($a_url='') | |
Constructor. More... | |
getResponseHeader () | |
Get response header as string. More... | |
getResponseHeaderArray () | |
Get response header as array. More... | |
init () | |
Init curl connection. More... | |
setOpt ($a_option, $a_value) | |
Wrapper for curl_setopt. More... | |
exec () | |
Wrapper for curl_exec. More... | |
parseResponse ($a_response) | |
parse response body More... | |
getResponseBody () | |
Get responce body. More... | |
getInfo ($opt=0) | |
Get informations about a specific transfer. More... | |
close () | |
Close connection. More... | |
__destruct () | |
Destructor public. More... | |
Static Public Member Functions | |
static | _isCurlExtensionLoaded () |
Check if curl extension is loaded. More... | |
Protected Attributes | |
$url = '' | |
$ch = null | |
Private Member Functions | |
parseHeader ($handle, $header) | |
Parse respone header. More... | |
Private Attributes | |
$header_plain = '' | |
$header_arr = array() | |
$response_body = '' | |
Definition at line 38 of file class.ilCurlConnection.php.
ilCurlConnection::__construct | ( | $a_url = '' | ) |
Constructor.
public
string | url for connection |
ilCurlConnectionException |
Definition at line 56 of file class.ilCurlConnection.php.
ilCurlConnection::__destruct | ( | ) |
Destructor public.
Definition at line 254 of file class.ilCurlConnection.php.
References close().
|
staticfinal |
Check if curl extension is loaded.
public
Definition at line 73 of file class.ilCurlConnection.php.
Referenced by ilLinkChecker\__validateLinks(), ilMediaImageUtil\getImageSize(), and ilClient\updateNIC().
|
final |
Close connection.
public
Definition at line 240 of file class.ilCurlConnection.php.
Referenced by __destruct().
|
final |
ilCurlConnection::getInfo | ( | $opt = 0 | ) |
Get informations about a specific transfer.
public
int | option e.g CURLINFO_EFFECTIVE_URL |
Definition at line 202 of file class.ilCurlConnection.php.
References $res.
Referenced by parseResponse().
ilCurlConnection::getResponseBody | ( | ) |
Get responce body.
Definition at line 189 of file class.ilCurlConnection.php.
References $response_body.
ilCurlConnection::getResponseHeader | ( | ) |
Get response header as string.
Definition at line 86 of file class.ilCurlConnection.php.
References $header_plain.
Referenced by parseHeader().
ilCurlConnection::getResponseHeaderArray | ( | ) |
Get response header as array.
Definition at line 95 of file class.ilCurlConnection.php.
References $header_arr, and array.
|
final |
Init curl connection.
public
ilCurlConnectionException | on error |
Definition at line 107 of file class.ilCurlConnection.php.
Referenced by ilECSConnector\prepareConnection().
|
private |
Parse respone header.
mixed | $handle | |
string | $header |
Definition at line 221 of file class.ilCurlConnection.php.
References $header, and getResponseHeader().
ilCurlConnection::parseResponse | ( | $a_response | ) |
parse response body
type | $a_response |
Definition at line 177 of file class.ilCurlConnection.php.
References getInfo().
|
final |
Wrapper for curl_setopt.
public
int | CURL_OPTION |
mixed | bool string or resource |
ilCurlConnectionException | on error |
Definition at line 139 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().
|
private |
Definition at line 46 of file class.ilCurlConnection.php.
Referenced by getResponseBody().
|
protected |
Definition at line 40 of file class.ilCurlConnection.php.