HTTP-POST über SSL absetzen

Alles, was PHP betrifft, kann hier besprochen werden.

HTTP-POST über SSL absetzen

Postby erdna123 » 21. June 2006 07:38

Hallo,

ich will über curl_* einen HTTP-Post absetzen und bekomme folgenden Fehler: "ErrorNr: 60 - SSL certificate problem, verify that the CA cert is OK in"

$headers = array();
$headers[] = "Content-Type: text/xml";
$headers[] = "Content-Length: " . strlen($request);

$curl = curl_init("https://$host$path");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
curl_setopt($curl, CURLOPT_POSTFIELDS, $request);
$result = curl_exec($curl);
if ( curl_errno($curl) ) {
user_error("ErrorNr: ".curl_errno($curl).' - '.curl_error($curl), E_USER_ERROR);
} // if

Installition XAMPP unter Windows, https-Zugriff auf die Seite funtioniert, auch der https-Zugriff auf meinen Server.
erdna123
 
Posts: 2
Joined: 21. June 2006 07:32

Postby erdna123 » 24. June 2006 18:20

Hat sich erledigt.
erdna123
 
Posts: 2
Joined: 21. June 2006 07:32


Return to PHP

Who is online

Users browsing this forum: No registered users and 11 guests