public
|
#
__construct( string $url = null )
Instantiates the library
Parameters
- $url
string $url Optionally, the URL for curl_init()
Throws
Author
|
public
Alo\cURL
|
#
setURL( string $url )
Sets the connection URL
Parameters
Returns
Author
|
public static
Alo\cURL
|
#
cURL( string $url = null )
Instantiates the library
Parameters
- $url
string $url Optionally, the URL for curl_init()
Returns
Throws
Author
|
public static
Alo\cURL
|
#
init( string $url = null )
A static wrapper function for __construct()
A static wrapper function for __construct()
Parameters
- $url
string $url Optionally, the URL for curl_init()
Returns
Author
|
public
boolean
|
#
setProgressFunction( callable $callable )
Sets CURLOPT_NOPROGRESS to FALSE and supplies the progress function
Sets CURLOPT_NOPROGRESS to FALSE and supplies the progress function
Parameters
- $callable
callable $callable The function
Returns
boolean
Author
|
public
Alo\cURL
|
#
notimeout( boolean $enabled = true )
Set whether cURL should time out
Set whether cURL should time out
Parameters
- $enabled
boolean $enabled The switch
Returns
Author
|
public
Alo\cURL
|
#
setopt_array( array $a )
Sets an array of options
Parameters
- $a
array $a An array specifying which options to set and their values. The keys should be
valid curl_setopt() constants or their integer equivalents.
Returns
Author
Link
|
public
Alo\cURL
|
#
laxSSLMode( boolean $enabled = true )
Toggles lax SSL verification mode which doesn't check certificates
Toggles lax SSL verification mode which doesn't check certificates
Parameters
- $enabled
boolean $enabled Whether the mode is enabled or disabled
Returns
Author
|
public
string
|
#
__toString( )
Returns a string representation of the object data
Returns a string representation of the object data
Returns
string
Author
|
public
string
|
#
escape( string $str )
URL encodes the given string
URL encodes the given string
Parameters
- $str
string $str The string
Returns
string The escaped string
Author
Link
|
public
integer
|
#
pause( integer $bitmask )
Pause and unpause a connection
Pause and unpause a connection
Parameters
- $bitmask
integer $bitmask One of CURLPAUSE_* constants.
Returns
integer An error code (CURLE_OK for no error).
Author
Link
|
public
array
|
#
version( integer $age = CURLVERSION_NOW )
Gets cURL version information
Gets cURL version information
Parameters
Returns
array
Author
Link
|
public
boolean|integer
|
#
wasSuccessful( )
Checks whether the last transfer was successful
Checks whether the last transfer was successful
Returns
boolean|integer If successful - true, if not & cURL error code exists - cURL error code,
false otherwise
Author
|
public
mixed
|
#
getinfo( integer $opt = 0 )
Get information regarding a specific transfer
Get information regarding a specific transfer
Parameters
- $opt
integer $opt One of the cURL constants
Returns
mixed
Author
Link
|
public
Alo\cURL
|
#
reset( )
Reset all options of a libcurl session handle
Reset all options of a libcurl session handle
Returns
Author
Link
|
public
string
|
#
unescape( string $str )
Decodes the given URL encoded string
Decodes the given URL encoded string
Parameters
Returns
string The decoded string
Author
Link
|
public
|
|
public
Alo\cURL
|
#
close( )
Closes a cURL connection
Returns
Author
Link
|
public
mixed
|
#
get( string $url = null )
Gets the results of a cURL exec. If $url is set, will exec on that URL
Gets the results of a cURL exec. If $url is set, will exec on that URL
Parameters
- $url
string $url Optional URL override
Returns
mixed The results of exec()
Author
|
public
Alo\cURL
|
#
exec( )
Executes the cURL connection parameters
Executes the cURL connection parameters
Returns
Author
Link
|
public
string
|
#
error( )
Returns the error message of the last exec()
Returns the error message of the last exec()
Returns
string
Author
See
Link
|
public
integer
|
#
errno( )
Returns the error number of the last exec() or 0 if no error occurred
Returns the error number of the last exec() or 0 if no error occurred
Returns
integer
Author
See
Link
|
public
|
#
__set( string $name, mixed $value )
Wrapper for setopt()
Parameters
- $name
string $name Param name
- $value
mixed $value Param value
Author
|
public
Alo\cURL
|
#
setopt( integer $name, mixed $value )
Sets an option
Parameters
- $name
integer $name The option - see cURL constants
- $value
mixed $value The option value
Returns
Author
Link
|