Post
Topic
Board Micro Earnings
Re: [ANN] FaucetBOX.com - free API & faucet script, create your own crypto faucet
by
NeedIfFindIt
on 13/11/2014, 11:36:47 UTC
Code:
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
Code:

        $params 
array_merge(array("api_key" => ''"currency" => 'BTC'));

        
$ch curl_init('https://faucetbox.com/api/v1/');

        
curl_setopt($chCURLOPT_POSTtrue);
        
curl_setopt($chCURLOPT_POSTFIELDS$params);
        
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
        
//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

Code:
Array ( [status] => 404 [message] => Invalid API method )