How to use curl_setopt_array() to set multiple options for a cURL transfer in PHP

1 Answer

0 votes
$cuh = curl_init();

$options = array(CURLOPT_URL => 'http://www.seek4info.com/',
                 CURLOPT_HEADER => false
                );

curl_setopt_array($cuh, $options);

curl_exec($cuh);

curl_close($cuh);


/*
run: 

check your browser

*/

 



answered Jun 8, 2016 by avibootz

Related questions

1 answer 181 views
1 answer 286 views
1 answer 24,037 views
1 answer 202 views
1 answer 145 views
145 views asked Jun 10, 2021 by avibootz
...