curl-and-php
retriving a variable from curl_setopt_array
Date: Fri, 15 Sep 2006 03:19:40 -0500
Hello all,
I have set all of curl's options using an array for curl_setopt_array as
follows:
$opts= array(
|CURLOPT_URL => 'http://www.example.com',||
|||....
);
later in the code I am trying to modify the options using code like
$opts[CURLOPT_COOKIE] = $ch->cookies.";".$opts[CURLOPT_COOKIE];
curl_setopt_array($ch, $opts);
|This did not work as expected seemingly due to the
$opts[CURLOPT_COOKIE] is translated into a number instead of a variable.
It seems like the options are set correctly, but it is not possible to
retrieve the value with the constant.
What I would like to know is if there is a way to see all the options
curl has set together with their respective values, or if I in this case
either must keep duplicate variables or another method than
curl_setopt_array to be able to modify the options set?
|
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2006-09-15