<p>The error it is giving you tells you that you need a version of libCURL with SSL support. Download the latest version with SSL support from below, open the Zip archive, go in to the "dlls" folder and replace the DLLs in your PHP installation with the new ones. Make sure you download the one which matches the architecture of your PHP installation, not the OS. For instance if you're running the 32 bit version of PHP on a 64 bit version of Windows, you'd want the 32 bit version of libCURL with SSL support.</p>

<p><a href="http://curl.haxx.se/download.html" rel="nofollow">http://curl.haxx.se/download.html</a></p>

<p>You might need to restart IIS (or whatever web server you're using) after you replace the DLLs.</p>

CC BY-SA 3.0
2014-05-18T08:09:59.743Z
2014-05-18T08:24:02.793Z
2014-05-18T08:24:02.793Z
Matt
<p>You are trying to connect to http over the https port. </p>

<p>For HTTP use:</p>

<blockquote>
  <p>$bitcoin = new
  jsonRPCClient('<a href="http://identifier%3aidentiferpass@rpc.blockchain.info" rel="nofollow">http://identifier:identiferpass@rpc.blockchain.info</a>');</p>
</blockquote>

<p>For HTTPS use:</p>

<blockquote>
  <p>$bitcoin = new
  jsonRPCClient('<a href="https://identifier%3aidentiferpass@rpc.blockchain.info" rel="nofollow">https://identifier:identiferpass@rpc.blockchain.info</a>');</p>
</blockquote>

<p>According to the blockchain.info documentation both should work.</p>

CC BY-SA 3.0
2014-05-12T14:53:17.383Z
2014-05-12T14:53:17.383Z
Maran
<p>I'm newbie to bitcoins. Im trying to get the info, as much as I can.
I'm trying to get the information by using <code>getinfo()</code> method that is mention in api documentation.
The code i have tried is mentioned below.</p>

<pre><code>   require_once('jsonRPCClient.php');
        $bitcoin = new jsonRPCClient('http://identifier:identiferpass@rpc.blockchain.info:443'); 
 print_r($bitcoin-&gt;getinfo());
</code></pre>

<p>I have googled it but didn't find the solution. I'm not getting what is the issue in the above code.</p>

<p>I just want to create a hello world connection. Any suggestions will be appreciated. Thank you</p>

CC BY-SA 3.0
2014-05-12T12:50:36.887Z
Do you get an error, or just nothing at all? Is the `jsonRPCClient.php` in the right directory?
Mathias711
CC BY-SA 3.0
2014-05-12T13:27:37.747Z
yes it is in right directory.
user15749
CC BY-SA 3.0
2014-05-12T13:28:28.190Z
the error is : Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to connect to https://identfier:password@rpc.blockchain.info:443 Error: Protocol https not supported or disabled in libcurl' in D:\wamp\www\bitcoin\jsonRPCClient.php on line 231
user15749
CC BY-SA 3.0
2014-05-12T13:29:10.153Z
and one more : RuntimeException: Unable to connect to https://identifier:identifierpasswrd@rpc.blockchain.info:443 Error: Protocol https not supported or disabled in libcurl in D:\wamp\www\bitcoin\jsonRPCClient.php on line 231
user15749
CC BY-SA 3.0
2014-05-12T13:35:44.773Z
So it looks like you cant make a connection at all. I found [this](https://en.bitcoin.it/wiki/PHP_developer_intro) site, shouldnt you make an account with password?
Mathias711
CC BY-SA 3.0
2014-05-12T13:48:07.020Z
come again please. there is a password....
user15749
<bitcoind><bitcoin-core><client><json-rpc><php>
Unable to establish connection to bitcoin using json and php
user15749
# Unable to establish connection to bitcoin using json and php

(Asked by: username_0 on 2014-05-12)

I'm newbie to bitcoins. Im trying to get the info, as much as I can.
I'm trying to get the information by using getinfo() method that is mention in api documentation.
The code i have tried is mentioned below.
   require_once('jsonRPCClient.php');
        $bitcoin = new jsonRPCClient('http://identifier:identiferpass@rpc.blockchain.info:443'); 
 print_r($bitcoin->getinfo());

I have googled it but didn't find the solution. I'm not getting what is the issue in the above code.
I just want to create a hello world connection. Any suggestions will be appreciated. Thank you

**Tags:** bitcoind, bitcoin-core, client, json-rpc, php

> **Comments:**
> **username_1**: Do you get an error, or just nothing at all? Is the `jsonRPCClient.php` in the right directory?  
> **username_0**: yes it is in right directory.  
> **username_0**: the error is : Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to connect to https://identfier:password@rpc.blockchain.info:443 Error: Protocol https not supported or disabled in libcurl' in D:\wamp\www\bitcoin\jsonRPCClient.php on line 231  
> **username_0**: and one more : RuntimeException: Unable to connect to https://identifier:identifierpasswrd@rpc.blockchain.info:443 Error: Protocol https not supported or disabled in libcurl in D:\wamp\www\bitcoin\jsonRPCClient.php on line 231  
> **username_1**: So it looks like you cant make a connection at all. I found [this](https://en.bitcoin.it/wiki/PHP_developer_intro) site, shouldnt you make an account with password?  
> **username_0**: come again please. there is a password....  

---

## 2 answers

### Answer by username_2 on 2014-05-18. Score: 1

The error it is giving you tells you that you need a version of libCURL with SSL support. Download the latest version with SSL support from below, open the Zip archive, go in to the "dlls" folder and replace the DLLs in your PHP installation with the new ones. Make sure you download the one which matches the architecture of your PHP installation, not the OS. For instance if you're running the 32 bit version of PHP on a 64 bit version of Windows, you'd want the 32 bit version of libCURL with SSL support.

<http://curl.haxx.se/download.html>

You might need to restart IIS (or whatever web server you're using) after you replace the DLLs.


---

### Answer by username_3 on 2014-05-12. Score: 1

You are trying to connect to http over the https port.

For HTTP use:

> $bitcoin = new
> jsonRPCClient('[http://identifier:identiferpass@rpc.blockchain.info](http://identifier%3aidentiferpass@rpc.blockchain.info)');

For HTTPS use:

> $bitcoin = new
> jsonRPCClient('[https://identifier:identiferpass@rpc.blockchain.info](https://identifier%3aidentiferpass@rpc.blockchain.info)');

According to the blockchain.info documentation both should work.


---

