Parse PHP SDK API Reference

ParseCurl
in package

Class ParseCurl - Wrapper for abstracted curl usage

Tags
author

Ben Friedman [email protected]

Table of Contents

$curl  : resource
Curl handle
close()  : mixed
Closed our curl handle and disposes of it
exec()  : mixed
Executes this curl request
getError()  : string
Gets the curl error message
getErrorCode()  : int
Gets the curl error code
getInfo()  : mixed
Gets info for this curl handle
init()  : mixed
Sets up a new curl instance internally if needed
setOption()  : mixed
Sets a curl option
setOptionsArray()  : mixed
Sets multiple curl options

Properties

Methods

close()

Closed our curl handle and disposes of it

public close() : mixed
Return values
mixed

getError()

Gets the curl error message

public getError() : string
Tags
throws
ParseException
Return values
string

getErrorCode()

Gets the curl error code

public getErrorCode() : int
Tags
throws
ParseException
Return values
int

getInfo()

Gets info for this curl handle

public getInfo(int $info) : mixed
Parameters
$info : int

Constant for info to get

Tags
throws
ParseException
Return values
mixed

init()

Sets up a new curl instance internally if needed

public init() : mixed
Return values
mixed

setOption()

Sets a curl option

public setOption(int $option, mixed $value) : mixed
Parameters
$option : int

Option to set

$value : mixed

Value to set for this option

Tags
throws
ParseException
Return values
mixed

setOptionsArray()

Sets multiple curl options

public setOptionsArray(array<string|int, mixed> $options) : mixed
Parameters
$options : array<string|int, mixed>

Array of options to set

Tags
throws
ParseException
Return values
mixed

Search results