Property | Type | Description | |
---|---|---|---|
$errorCode | null | integer | Error code holder: https://curl.haxx.se/libcurl/c/libcurl-errors.html | |
$response | string | Holds response data right after sending a request. | |
$responseCharset | HTTP Response Charset (taken from Content-type header) | ||
$responseCode | HTTP-Status Code This value will hold HTTP-Status Code. False if request was not successful. | ||
$responseLength | HTTP Response Length (taken from Content-length header, or strlen() of downloaded content) | ||
$responseType | HTTP Response Content Type (taken from Content-type header) |
Method | Description | |
---|---|---|
delete ( string $url, boolean $raw = true ) : mixed | Start performing DELETE-HTTP-Request | |
get ( string $url, boolean $raw = true ) : mixed | Start performing GET-HTTP-Request | |
getInfo ( null $opt = null ) : array | mixed | Get curl info according to http://php.net/manual/de/function.curl-getinfo.php | |
getOption ( string | integer $key ) : mixed | boolean | Return a single option | |
getOptions ( ) : array | Return merged curl options and keep keys! | |
head ( string $url ) : mixed | Start performing HEAD-HTTP-Request | |
patch ( string $url, boolean $raw = true ) : mixed | Start performing PATCH-HTTP-Request | |
post ( string $url, boolean $raw = true ) : mixed | Start performing POST-HTTP-Request | |
put ( string $url, boolean $raw = true ) : mixed | Start performing PUT-HTTP-Request | |
reset ( ) | Total reset of options, responses, etc. | |
setOption ( string $key, mixed $value ) | Set curl option | |
setOptions ( array $options ) | Set curl options | |
unsetOption ( string $key ) | Unset a single curl option | |
unsetOptions ( ) | Unset all curl option, excluding default options. |
Method | Description | |
---|---|---|
_extractAdditionalCurlParameter ( ) | Extract additional curl params private class helper | |
_httpRequest ( string $method, string $url, boolean $raw = false ) : mixed | Performs HTTP request |
public getOptions ( ) : array | ||
return | array |
public unsetOption ( string $key ) | ||
$key | string |
public unsetOptions ( ) |
public string $response | ||
return | string |
public $responseCharset |
public $responseCode |
public $responseLength |