cURL Request Class
Work with remote servers via cURL much easier than using the native PHP bindings.
| category | Library |
|---|---|
| package | BCA/CURL |
| author | Brodkin CyberArts |
| author | Philip Sturgeon |
| copyright | 2012 Brodkin CyberArts. |
| license | GPL-3.0 http://www.gnu.org/licenses/gpl.txt |
| version | GIT: $Id$ |
| link | https://github.com/brodkinca/BCA-PHP-CURL |
__construct(string $url, array $params)
stringValid URL resource
arrayAssociative array of query parameters.
__destruct()
auth(string $username, string $password, string $type) : \BCA\CURL\CURL
| fluent | This method is part of a fluent interface and will return the same instance |
|---|
stringUsername.
stringPassword.
stringAny valid value for CURLOPT_HTTPAUTH.
header(string $header, string $content) : \BCA\CURL\CURL
| fluent | This method is part of a fluent interface and will return the same instance |
|---|
stringKey of HTTP header.
stringValue of HTTP header.
option(string $code, string $value) : \BCA\CURL\CURL
| fluent | This method is part of a fluent interface and will return the same instance |
|---|
stringKey of cURL option to set or override.
stringNew value of cURL option.
param(string $key, string $value) : \BCA\CURL\CURL
| fluent | This method is part of a fluent interface and will return the same instance |
|---|
stringParameter key on which value should be set.
stringKey on which value should be set.
params(array $params) : \BCA\CURL\CURL
| fluent | This method is part of a fluent interface and will return the same instance |
|---|
arrayAssociative array of parameters.
ssl(boolean $verify_peer, integer $verify_host, string $path_to_cert) : \BCA\CURL\CURL
| fluent | This method is part of a fluent interface and will return the same instance |
|---|
booleanRequire a valid certificate.
integerRequire a hostname match of certificate.
stringLocal path to certificate(s) file.
_execute() : mixed
mixed_hasExtCurl() : boolean
boolean_hasOption(int $code) : boolean
intInteger representation of cURL option.
boolean_hasParam(string $key) : boolean
stringKey to check in parameter array.
boolean_method(string $method) : \BCA\CURL\CURL
| fluent | This method is part of a fluent interface and will return the same instance |
|---|
stringValid HTTP method.
_startSession(string $url) : \BCA\CURL\CURL
| fluent | This method is part of a fluent interface and will return the same instance |
|---|
stringValid URL resource.
$headers : array
$params : array
$session : \BCA\CURL\curl_init()
$url : string