cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

HTTPS/HTTP Page getting difference

From: Svetlin Staev <svetlin_at_developer.bg>
Date: Sun, 17 Nov 2002 13:28:10 +0200

Hey All,

 I am dealing with CURL for very little time but I am really getting to like it. I use it to get page contents from HTTP protocols but when I try to open an HTTPs one it returns no data. The code I use is:

  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL,$which);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  $re = curl_exec ($ch);
  curl_close ($ch);

 The server I run this on is Apache 1.3.17 with PHP 4.2.3 (libcurl/7.10.1 OpenSSL/0.9.6 zlib/1.1.3). Am I doing something wrong or the code for HTTPS is different?

 Best Regards,

 Svetlin Staev
 CEO & Head Developer
 Infinity Interactive
 "Create your reality with us"
 http://iinteractive.host.sk

-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
Received on 2002-11-17