Hello everyone,

I'm trying to make a quick program to retrieve buttcoin price from btc-e in json format, but I'm not actually receiving anything in the QNetworkReply. I think it's due to SSL (Heartbleed) updates that I don't have, but I'm not quite sure. Here's my code:

Qt Code:
  1. #include <QtGui/QMainWindow>
  2. #include <QUrl>
  3. #include <QNetworkAccessManager>
  4. #include <QNetworkRequest>
  5. #include <QNetworkReply>
  6. #include <QSslConfiguration>
  7. #include <QNetworkProxy>
  8.  
  9. //in constructor
  10. QNetworkAccessManager *nwam = new QNetworkAccessManager();
  11. connect(nwam,SIGNAL(finished(QNetworkReply*)),this,SLOT(rfinish(QNetworkReply*)));
  12.  
  13. void mainWindow::pbSendClicked(){
  14. QUrl url("https://btc-e.com/api/3/ticker/btc_usd");
  15. QNetworkRequest request;
  16. request.setUrl(url);
  17.  
  18. QSslConfiguration config = QSslConfiguration::defaultConfiguration();
  19. config.setProtocol(QSsl::TlsV1);
  20. request.setSslConfiguration(config);
  21.  
  22. nwam->get(request);
  23. }
  24.  
  25. void hcode::rfinish(QNetworkReply *r){
  26. QString herp=QString::fromUtf8(r->readAll());
  27. //debug
  28. cout << "reply: " << herp.toStdString().c_str() << endl;
  29. }
To copy to clipboard, switch view to plain text mode 

The herp string is empty when I send the query. I have libeay32.dll and ssleay32.dll in the same folder as the exe. What's missing?


Thanks in advance.


Mr_Cloud