Title: Access from Qt Post by: giantdragon on July 03, 2011, 12:01:18 PM I want to access BitCoin wallet using JSON from my Qt application.
I started server, connected via QTcpSocket and send test command, but no response received. Socket's state is connected. May be serialization problem (I used QDataStream)? Title: Re: Access from Qt Post by: giantdragon on July 03, 2011, 12:54:13 PM Connected using HTTP protocol with QNetworkAccessManager.
Title: Re: Access from Qt Post by: giantdragon on July 03, 2011, 01:00:49 PM Sample query:
net = new QNetworkAccessManager(this); connect(net, SIGNAL(finished(QNetworkReply*)), this, SLOT(finished(QNetworkReply*))); QByteArray data("{\"jsonrpc\": \"1.0\", \"id\":\"curltest\", \"method\": \"getinfo\", \"params\": [] }"); net->post(QNetworkRequest(QUrl("http://my_username:my_password@localhost:8332")), data); |