include the Zebra_cURL library
require 'path/to/Zebra_cURL';
instantiate the Zebra_cURL object
$curl = new Zebra_cURL();
setting a single option
$curl->option(CURLOPT_CONNECTTIMEOUT, 10);
setting multiple options at once
$curl->option(array(
CURLOPT_TIMEOUT => 10,
CURLOPT_CONNECTTIMEOUT => 10,
));
make a request here...
public option ( mixed $option, mixed $value = '' ) : void | ||
$option | mixed | A single option for which to set a value, or an associative array in the form of option => value (in case of an array, the $value argument will be disregarded). Setting a value to null will "unset" that option. @param mixed $value (Optional) If the $option argument is not an array, then this argument represents the value to be set for the respective option. If the $option argument is an array, then the value of this argument will be ignored. Setting a value to null will "unset" that option. @return void |
$value | mixed | |
return | void |