Hello Everyone,
This is my first post on BTCtalk, although not my first visit. I was hoping to post in the technical discussion section, but the rules forbid me. In any case, I hope someone could point me in the right direction.
I would like some help on successfully communicating with the bitcoin-qt.exe using RPC. I've read that I need to add an rpcuser and rpcpassword in the conf file - already done. I've looked at the API reference online and I've tried sending a command using cURL, but it's not going through.
The command is curl --user myuser --data-binary "{\"jsonrpc\": \"1.0\", \"id\":\"curltest\", \"method\": \"getinfo\", \"params\": [] }" -H "content-type: text/plain;" http://127.0.0.1:8332/, note the changes from the online documentation to run on Windows, mainly replacing " with \" and ' with ". The error I get is Failed connect to 127.0.0.1:8332; No error.
Curl version is 7.30.0 with SSL. What am I missing?
Thanks in advance.
Regards,
Trafiq