Constants

M_BAD_SOCKET

M_BAD_SOCKET

M_UNKNOWN_OPTION

M_UNKNOWN_OPTION

M_ADDED_ALREADY

M_ADDED_ALREADY

Properties

$infoLookup

$infoLookup : 

Type

$lastHandle

$lastHandle : integer

Type

integer — Used to hand out unique indices for handles. This is used both for easy and for multi handles.

$mapOptionCounts

$mapOptionCounts : 

Type

$mapOptions

$mapOptions : 

Type

$mapResponses

$mapResponses : 

Type

$mapErrorCodes

$mapErrorCodes : 

Type

$mapInfo

$mapInfo : 

Type

$errorLookup

$errorLookup : 

Lookup tables

Type

Methods

init()

init(  $url = null) 

Easy interface

Parameters

$url

copy_handle()

copy_handle(  $ch) 

Parameters

$ch

setopt()

setopt(  $ch,   $option,   $value) 

Parameters

$ch
$option
$value

setopt_array()

setopt_array(  $ch,   $options) 

Parameters

$ch
$options

exec()

exec(  $ch) 

Parameters

$ch

errno()

errno(  $ch) 

Parameters

$ch

error()

error(  $ch) 

Parameters

$ch

getinfo()

getinfo(  $ch,   $opt) 

Parameters

$ch
$opt

close()

close(  $ch) 

Easy interface

Parameters

$ch

multi_init()

multi_init() 

Multi interface

multi_add_handle()

multi_add_handle(  $mh,   $ch) 

Multi interface

Parameters

$mh
$ch

multi_select()

multi_select(  $mh,   $timeout = 1.0) 

Parameters

$mh
$timeout

multi_exec()

multi_exec(  $mh,   $still_running) 

Parameters

$mh
$still_running

multi_info_read()

multi_info_read(  $mh,   $msgs_in_queue = null) 

Parameters

$mh
$msgs_in_queue

multi_getcontent()

multi_getcontent(  $ch) 

Parameters

$ch

multi_remove_handle()

multi_remove_handle(  $mh,   $ch) 

Parameters

$mh
$ch

multi_close()

multi_close(  $mh) 

Parameters

$mh

version()

version(  $age = CURLVERSION_NOW) 

Miscellaneous

Parameters

$age

setResponse()

setResponse(  $expectedResponse,   $requiredOptions = array()) 

Stub configuration

Parameters

$expectedResponse
$requiredOptions

setErrorCode()

setErrorCode(  $expectedErrorCode,   $requiredOptions = array()) 

Parameters

$expectedErrorCode
$requiredOptions

setInformation()

setInformation(  $expectedInfo,   $requiredOptions = array()) 

Parameters

$expectedInfo
$requiredOptions

getHashAndSetOptionMaps()

getHashAndSetOptionMaps(  $requiredOptions) 

Parameters

$requiredOptions

versionNewerThan()

versionNewerThan(  $major,   $minor,   $patch) 

Helper functions

Parameters

$major
$minor
$patch

getResponse()

getResponse(  $handle) 

Parameters

$handle

getErrorCode()

getErrorCode(  $handle) 

Parameters

$handle

getInformation()

getInformation(  $handle,   $opt) 

Parameters

$handle
$opt

getInfoArray()

getInfoArray(  $handle) 

Parameters

$handle

determineKey()

determineKey(  $handle,   $map) 

Parameters

$handle
$map