CURL_OPTION in foreach statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It seems something is not working so well here:

$extra_curl_params = array ('CURLOPT_POST'=>TRUE);
foreach ($extra_curl_params as $curl_opt_name=>$curl_opt_value) {
	curl_setopt ($curl_handle, $curl_opt_name, $curl_opt_value);
}

I use this "foreach" method to set up curl options and actually curl_setopt function does not complaint about it. But some or all of the options set seems not to be properly working when curl actually make the connection.

Anyone could help?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux