Skip to content

CurlHandler :: setOptions(array)

Brian Boll edited this page Apr 22, 2018 · 3 revisions

CurlHandler :: setOptions(array)

$options = array(
    CURLOPT_USERAGENT => "EXAMPLE_USERAGENT",
    CURLOPT_POST => false,
    CURLOPT_RETURNTRANSFER => true
);

$ch = new CurlHandler('http://example.com');
$ch->setOptions($options);

Parameters [1]:

[1] array: An array containing constants as keys each representing one of the libcurl options detailed more here and their corresponding expected values

Returns:

No return value

Clone this wiki locally