curl-and-php
RE: Problem with errno 52
Date: Mon, 24 Feb 2003 13:48:06 +0100
Just installed higher version and found out the reason:
Error: SSL: error:14090086:SSL
routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Errno: 35
Version: libcurl/7.10.2 OpenSSL/0.9.6g
The server uses its own ceritificate. Can I solve it somehow?
Petr
-----Original Message-----
From: curl-and-php-admin_at_lists.sourceforge.net
[mailto:curl-and-php-admin_at_lists.sourceforge.net] On Behalf Of Petr Tvaroha
Sent: Monday, February 24, 2003 1:11 PM
To: curl-and-php_at_lists.sourceforge.net
Subject: Problem with errno 52
Hello,
I have a problem to get the result from a "https" web site.
I get the result from the server via browser ok and when i try the same with
PHP curl_exec() I get error: Empty reply from server.
PHP 4.3.0, Win2K, libcurl 7.9.8 (OpenSSL 0.9.6g)
$url = "https://login:password@somesite.com/file?param1=1";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
echo curl_exec ($ch);
curl_close($ch);
I can see that it was connected to the server, I see the ceritificate and
request, however, no result.
Moreover when I tried to POST the request and used
curl_setopt($ch, CURL_POST, 1);
curl_setopt($ch, CURL_POSTFIELDS, "par1=1&par2=2");
Via CURLOPT_VERBOSE i saw that GET method was used anyway.
Thanks in advance
Petr
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-02-24