ParseCurl

Class ParseCurl - Wrapper for abstracted curl usage

author

Ben Friedman ben@axolsoft.com

package

Parse\HttpClients

Methods

Closed our curl handle and disposes of it

close() 

Executes this curl request

exec() : mixed
Throws
\Parse\ParseException

Response

mixed

Gets the curl error message

getError() : string
Throws
\Parse\ParseException

Response

string

Gets the curl error code

getErrorCode() : integer
Throws
\Parse\ParseException

Response

integer

Gets info for this curl handle

getInfo(integer $info) : mixed
Throws
\Parse\ParseException

Arguments

$info

integer

Constatnt for info to get

Response

mixed

Sets up a new curl instance internally if needed

init() 

Sets a curl option

setOption(integer $option, mixed $value) 
Throws
\Parse\ParseException

Arguments

$option

integer

Option to set

$value

mixed

Value to set for this option

Sets multiple curl options

setOptionsArray(array $options) 
Throws
\Parse\ParseException

Arguments

$options

array

Array of options to set

Properties

Curl handle

curl : resource
var

Type(s)

resource