public | #__construct(string$url=null) Instantiates the library Parameters- $url
string $url Optionally, the URL for curl_init()
ThrowsAuthor |
publicAlo\Curl | #setURL(string$url) Sets the connection URL ParametersReturnsAuthor |
public staticAlo\Curl | #cURL(string$url=null) Instantiates the library Parameters- $url
string $url Optionally, the URL for curl_init()
ReturnsThrowsAuthor |
public staticAlo\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()
ReturnsAuthor |
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
Returnsboolean
Author |
publicAlo\Curl | #notimeout(boolean$enabled=true) Set whether Curl should time out Set whether Curl should time out Parameters- $enabled
boolean $enabled The switch
ReturnsAuthor |
publicAlo\Curl | #setoptArray(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.
ReturnsAuthorLink |
publicAlo\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
ReturnsAuthor |
public string | #__toString( ) Returns a string representation of the object data Returns a string representation of the object data Returnsstring
Author |
public string | #escape(string$str) URL encodes the given string URL encodes the given string Parameters- $str
string $str The string
Returnsstring The escaped string
AuthorLink |
public integer | #pause(integer$bitmask) Pause and unpause a connection Pause and unpause a connection Parameters- $bitmask
integer $bitmask One of CURLPAUSE_* constants.
Returnsinteger An error code (CURLE_OK for no error).
AuthorLink |
public array | #version(integer$age= CURLVERSION_NOW) Gets Curl version information Gets Curl version information ParametersReturnsarray
AuthorLink |
public boolean|integer | #wasSuccessful( ) Checks whether the last transfer was successful Checks whether the last transfer was successful Returnsboolean|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
Returnsmixed
AuthorLink |
publicAlo\Curl | #reset( ) Reset all options of a libcurl session handle Reset all options of a libcurl session handle ReturnsAuthorLink |
public string | #unescape(string$str) Decodes the given URL encoded string Decodes the given URL encoded string ParametersReturnsstring The decoded string
AuthorLink |
public | |
publicAlo\Curl | #close( ) Closes a Curl connection ReturnsAuthorLink |
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
Returnsmixed The results of exec()
Author |
publicAlo\Curl | #exec( ) Executes the Curl connection parameters Executes the Curl connection parameters ReturnsAuthorLink |
public string | #error( ) Returns the error message of the last exec() Returns the error message of the last exec() Returnsstring
AuthorSeeLink |
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 Returnsinteger
AuthorSeeLink |
public | #__set(string$name,mixed$value) Wrapper for setopt() Parameters- $name
string $name Param name- $value
mixed $value Param value
Author |
publicAlo\Curl | #setopt(integer$name,mixed$value) Sets an option Parameters- $name
integer $name The option - see Curl constants- $value
mixed $value The option value
ReturnsAuthorLink |