Bug #17715 Updated: cURL can't make SSL connections in CGI
| From: | mwalker at kydance dot net | Date: | Tue, 11 Jun 2002 23:40:21 +0000 |
| Subject: | Bug #17715 Updated: cURL can't make SSL connections in CGI | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10190@lists.php.net to get a copy of this message | ||
ID: 17715
Updated by: mwalker@kydance.net
Reported By: mwalker@kydance.net
Status: Feedback
Bug Type: cURL related
Operating System: Linux 2.4.17 SMP
PHP Version: 4.1.2
New Comment:
Well, I went ahead and upgraded our CGI version to 4.2.1, and it's
working now, so the problem is definately in 4.1.2.
Previous Comments:
------------------------------------------------------------------------
[2002-06-11 18:35:09] mwalker@kydance.net
Example Run:
[root@helium /root]# php -q /var/www/mthmarketing/test.php
bool(false)
------------------------------------------------------------------------
[2002-06-11 18:30:44] edink@php.net
I just tested your script with PHP 4.2.1 on RedHat Linux 6.2 and curl
7.9.5 (i686-pc-linux-gnu) libcurl 7.9.5 (OpenSSL 0.9.5). It worked as
expected.
What output/error messages you get?
------------------------------------------------------------------------
[2002-06-11 18:25:27] mwalker@kydance.net
Bug in that script I just posted. Corrected version:
<?
$curlsession = curl_init("https://www.mthmarketing.com/index.html");
curl_setopt($curlsession, CURLOPT_RETURNTRANSFER, 1);
$return_string = curl_exec($curlsession);
curl_close($curlsession);
var_dump($return_string);
?>
------------------------------------------------------------------------
[2002-06-11 18:23:34] mwalker@kydance.net
No, we haven't upgraded to 4.2x yet.
Here's the script for you:
<?
$curlsession = curl_init("https://www.mthmarketing.com/index.html");
curl_setopt($curlsession, CURLOPT_RETURNTRANSFER, 1);
$return_string = curl_exec($curlsession);
curl_close($curlsession);
var_dump($curlsession);
?>
------------------------------------------------------------------------
[2002-06-11 18:16:48] sniper@php.net
Have you tried PHP 4.2.1 ? Also, add a short, self-contained
script here which can be used to reproduce this problem.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/17715
--
Edit this bug report at http://bugs.php.net/?id=17715&edit=1