Request_Curl Class

Curl driver for Requests

package Fuel\Core

 Methods

Extends parent constructor to detect availability of cURL

__construct(string $resource, array $options, string $method) 

Parameters

$resource

string

url to use

$options

array

options array

$method

string

request method

Exceptions

\RuntimeException

execute()

execute(array $additional_params) 

Parameters

$additional_params

Overwrites driver method to set options driver specifically

set_options(array $options) : \Fuel\Core\Request_Curl

Parameters

$options

array

Returns

Fetch the connection, create if necessary

connection() : \resource

Returns

\resource

Function to encode input array depending on the content type

encode(array $input) : mixed

Parameters

$input

array

Returns

mixedencoded output

DELETE request

method_delete() : void

GET request

method_get() : void

HEAD request

method_head() : void

POST request

method_post() : void

PUT request

method_put() : void

Extends parent to reset headers as well

set_defaults() : \Fuel\Core\Request_Curl

 Properties

 

<p>to preserve the original resource url when using get</p>

$preserve_resource : string