PHP Version: 5.2.10
OPENSSL Version: OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
allow_url_fopen: Success
DNS Response: 104.28.28.86
--- Trying FSOCKOPEN - HTTP ---
Success
--- Trying FSOCKOPEN - HTTPS - IP method ---
Success
--- Trying FSOCKOPEN - HTTPS - gethostbyname method ---
Success
--- Trying FSOCKOPEN - HTTPS ---
Success
So is it right, that the errors are normal on OpenSSL 0.9.x with PHP 5.2?
Is there a fix, to get it working?
Having 4*Success means simply it should work mo matter the openssl version.
What about this:
plumber-curl.php
$params = array_merge(array("api_key" => '', "currency" => 'BTC'));
$ch = curl_init('https://faucetbox.com/api/v1/');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
//curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$response = json_decode(curl_exec($ch), true);
echo curl_error($ch);
curl_close($ch);
print_r($response);
?>
You should get
Array ( [status] => 404 [message] => Invalid API method )