$resource
$resource : resource
Client resource object
Curl class
setUrl(string $url) : \Pop\Http\Client\AbstractClient
Set the URL
string | $url |
setMethod(string $method) : \Pop\Http\Client\Curl
Set the method
string | $method |
setField(string $name, mixed $value) : \Pop\Http\Client\AbstractClient
Set a field
string | $name | |
mixed | $value |
setFields(array $fields) : \Pop\Http\Client\AbstractClient
Set all fields
array | $fields |
removeField(string $name) : \Pop\Http\Client\AbstractClient
Remove a field
string | $name |
setRequestHeader(string $name, string $value) : \Pop\Http\Client\AbstractClient
Set a request header
string | $name | |
string | $value |
setRequestHeaders(array $headers) : \Pop\Http\Client\AbstractClient
Set all request headers
array | $headers |
open() : \Pop\Http\Client\Curl
Create and open cURL resource
setOption(integer $opt, mixed $val) : \Pop\Http\Client\Curl
Set cURL session option
integer | $opt | |
mixed | $val |
setOptions(array $opts) : \Pop\Http\Client\Curl
Set cURL session options
array | $opts |
setReturnHeader(boolean $header = true) : \Pop\Http\Client\Curl
Set cURL option to return the header
boolean | $header |
setReturnTransfer(boolean $transfer = true) : \Pop\Http\Client\Curl
Set cURL option to return the transfer
boolean | $transfer |