Bitcoin Forum
May 09, 2024, 04:03:19 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Other / Beginners & Help / [Q] [Dev] Bitcoin-Qt.exe, RPC and cURL/Python (win7 x64) on: June 23, 2013, 08:52:05 AM
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
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!