ParseCurl
in package
Class ParseCurl - Wrapper for abstracted curl usage
Tags
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
$curl
Curl handle
private
resource
$curl
Methods
close()
Closed our curl handle and disposes of it
public
close() : mixed
Return values
mixed —exec()
Executes this curl request
public
exec() : mixed
Tags
Return values
mixed —getError()
Gets the curl error message
public
getError() : string
Tags
Return values
string —getErrorCode()
Gets the curl error code
public
getErrorCode() : int
Tags
Return values
int —getInfo()
Gets info for this curl handle
public
getInfo(int $info) : mixed
Parameters
- $info : int
-
Constant for info to get
Tags
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
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