Okay, so lets see here...
From
http://uk.php.net/curl
Installation
To use PHP's CURL support you must also compile PHP --with-curl[=DIR] where DIR is the location of the directory containing the lib and include directories. In the "include" directory there should be a folder named "curl" which should contain the easy.h and curl.h files. There should be a file named libcurl.a located in the "lib" directory. Beginning with PHP 4.3.0 you can configure PHP to use CURL for URL streams --with-curlwrappers.
Note to Win32 Users: In order to enable this module on a Windows environment, libeay32.dll and ssleay32.dll must be present in your PATH.
You don't need libcurl.dll from the CURL site.
However, you WILL find php_curl.dll here: "C:\Program Files\XAMPP\php\extensions\" included with XAMPP.
Using OpenSSL is NOT the same as using CURL to access https sites.
An example of curl usage with php can be found here:
http://curl.haxx.se/libcurl/php/examples/simpleget.html -- lets use a known https address, eg:
https://adwords.google.com/select/
- Code: Select all
<?php
//
// A very simple example that gets a HTTP page.
//
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, "https://adwords.google.com/select/");
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_exec ($ch);
curl_close ($ch);
?>
Results in a blank page.
Izzy, what you're talking about is Apache SSL support, NOT curl or PHP.
Besides, infact when I do visit either of those addresses, I get the following error (or similar): The connection to 127.0.0.1 was interrupted while the page was loading.