From:             [EMAIL PROTECTED]
Operating system: FreeBSD 4.3
PHP version:      4.0.6
PHP Bug Type:     cURL related
Bug description:  4.0.6 + curl 7.8 Do not properly support https

Compiled php4.0.6 with curl 7.8 and open ssl. using this small script, the
data properly returns:

[(root)dave@sentinel goto]# cat test.php 
#!/usr/bin/php -q
$ch = curl_init ();
curl_setopt ($ch, CURLOPT_URL,"";); 
curl_setopt ($ch, CURLOPT_HEADER, 1);
curl_setopt ($ch, CURLOPT_VERBOSE, 1);
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01;
Windows NT 5.0)");
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); 
curl_exec ($ch);
curl_close ($ch);
[(root)dave@sentinel goto]# ./test.php 
* Connected to (
> GET / HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

* Connection (#0) left alive
* Closing live connection (#0)
[(root)dave@sentinel goto]# 

I switch to https:

[(root)dave@sentinel goto]# ./test.php   
* Closing live connection (#0)
[(root)dave@sentinel goto]# 

I put phpinfo() in another small function to verify curl:

[(root)dave@sentinel goto]# ./test2.php | grep curl
<H2 align="center"><A NAME="module_curl">curl</A></H2>
Information</B></td><TD ALIGN="left">libcurl 7.8 (SSL 0.9.5)</td></TR>
[(root)dave@sentinel goto]#

Commandline, i test curls use of SSL:

[(root)dave@sentinel goto]# curl | more
  % Total    % Received % Xferd  Average Speed          Time            
                                 Dload  Upload Total    Current  Left   
100 10202    0 10202    0     0  30786      0 --:--:--  0:00:00 --:--:-- 

works fine.

If i downgrade to: 
curl 7.7.3 (i386--freebsd4.3) libcurl 7.7.3 (OpenSSL 0.9.6) (ipv6
and php4.0.5 everything works as advertised.

php 4.0.6 requires curl 7.8 to compile, i cant test with downgraded curl

Edit bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to