cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

SSL problem

From: SDowell <sdowell_at_garrison.com>
Date: Wed, 22 Aug 2001 07:52:28 -0700

I'm trying to retrieve a web page php and cURL using openssl.
The response I get is:

* Your connection is using a weak random seed! * Closing live connection
(#0)
I can run the following from the command line and it works perfectly.

c:\curl\curl -u arri_sd:rgXnnnyG https://www.foo.com/

My code is:

$file_name = "C:/Scan_files/test_4.xml";

$auth = "arri_sd:rgXmnnyG";
$ch = curl_init ("https://www.foo.com/");
$fp = fopen ($file_name, "w");
curl_setopt ($ch, CURLOPT_FILE, $fp);
curl_setopt ($ch, CURLOPT_USERPWD, $auth);
curl_exec($ch);
curl_close ($ch);

fclose ($fp);

Any help will be greatly appreciated,
Steve Dowell
Received on 2001-08-22