I am using PHP 4.0.6 and when I run the following code I get nothing back
except the error code 27 and a message saying 
SSL: couldn't create a context
I can run the same thing from the command line and it works perfectly
does anyone have any ideas on this?
Thanks in advance for any help,
Steve Dowell
 
$q_auth = $login.":".$pw;
$fp = fopen("c:Scan_files/test_10.xml","w");
$ch = curl_init("https://www.foo.com/msp/some_report_list.php";);
curl_setopt($ch, CURLOPT_USERPWD,$q_auth); 
curl_setopt($ch, CURLOPT_FAILONERROR, 0); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); 
curl_setopt($ch, CURLOPT_FILE,$fp); 
curl_setopt($ch, CURLOPT_NOPROGRESS,0);
curl_setopt($ch, CURLOPT_VERBOSE,1);  
$result=curl_exec ($ch); 
echo curl_errno($ch)."<br>";
echo curl_error($ch);
curl_close ($ch); 
echo "result=".$result; 
$fp = fclose;

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to