class vB_vURL_cURL

Traits

Properties

string $response_text String that holds the cURL callback data
string $response_header String that holds the cURL callback data
resource $ch cURL Handler
object $vurl vB_vURL object
resource $fp Filepointer to the temporary file
integer $response_length Length of the current response
int $__finished_headers Private variable when we request headers. Values are one of VURL_STATE_* constants.
integer $max_limit_reached If the current result is when the max limit is reached

Methods

__sleep()

No description

__wakeup()

No description

__construct(object $vurl)

Constructor

integer
curl_callback_header(resource $ch, string $string)

Callback for handling headers

integer
curl_callback_response(resource $ch, string $response)

Callback for handling the request body

reset()

Clears all previous request info

integer
exec()

Performs fetching of the file if possible

Details

in vB_Trait_NoSerialize at line 15
__sleep()

in vB_Trait_NoSerialize at line 20
__wakeup()

at line 78
__construct(object $vurl)

Constructor

Parameters

object $vurl Instance of a vB_vURL Object

at line 95
integer curl_callback_header(resource $ch, string $string)

Callback for handling headers

Parameters

resource $ch cURL object
string $string Request

Return Value

integer length of the request

at line 112
integer curl_callback_response(resource $ch, string $response)

Callback for handling the request body

Parameters

resource $ch cURL object
string $response Request

Return Value

integer length of the request

at line 180
reset()

Clears all previous request info

at line 195
integer exec()

Performs fetching of the file if possible

Return Value

integer Returns one of two constants, VURL_NEXT or VURL_HANDLED