Title: [Q] [Dev] Bitcoin-Qt.exe, RPC and cURL/Python (win7 x64) Post by: Trafiq 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 Title: Re: [Q] [Dev] Bitcoin-Qt.exe, RPC and cURL (win7 x64) Post by: Trafiq on June 23, 2013, 05:04:33 PM Update: I'm trying to get the Python solution working as well, but I'm encountering issues using this approach also.
I installed jsonrpc and bitcoinrpc according to jgarzik's https://bitcointalk.org/index.php?topic=5314.0 but I get the following error when running the query: Code: <snip>\Python\Lib\site-packages\bitcoinrpc>query2.py I'd appreciate any feedback. Thank you. |