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

curl-and-php

Error 27: SSL: couldn't create a context!

From: Andreas Hartmann <andreas_at_webdesign-service.de>
Date: Fri, 17 Aug 2001 15:13:41 +0200

Hi all,

im trying to do a https request to an url
(https://test.mydomain.de/test.php).

-------------------------------------------------

$ch = curl_init("$testurl_web");
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
curl_setopt($ch, CURLOPT_TIMEOUT, 10); //times out after 4s
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_HEADER,0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "test=WebTRADE"); //C_USER_ID=tedewebserv01&

$result = curl_exec ($ch);

echo curl_errno($ch)."<br>";
echo curl_error($ch);

curl_close($ch);

echo "<p>result: $result";
-------------------------------------------------

Only feedback i get is: error 27: SSL: couldn't create a context!

System Information:
W2k, PHP 4.0.6, openssl and curl extendsion dll installed and
accoriding to info() enabled.

Any Ideas?

Thanks in advance....

Andi

---------------------------------------------------
www.webdesign-service.de
Andreas Hartmann * Welserweg 7/1 * 89077 Ulm
Telefon +49 (0)731-3600756 Mobile +49(0)177-5638668
Telefax +49 (0)731-3600415
E-Mail andreas_at_webdesign-service.de
---------------------------------------------------
Received on 2001-08-17