Bug #17715 Updated: cURL can't make SSL connections in CGI

From: Date: Tue, 11 Jun 2002 22:35:09 +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-10179@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: Example Run: [root@helium /root]# php -q /var/www/mthmarketing/test.php bool(false) Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2002-06-11 17:43:28] mwalker@kydance.net Note that curl works properly in the apache module version of PHP on the same box. ------------------------------------------------------------------------ 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

« previous php.bugs (#10179) next »