+ QString credentials = this->myRegistration->getUserName() + ":" + this->myRegistration->getPassword();
+ credentials = "Basic " + credentials.toAscii().toBase64();
+
+ QUrl qurl("http://api.speedfreak-app.com/results/category_name/limit");
+ QNetworkRequest request(qurl);
+
+ request.setRawHeader(QByteArray("Authorization"),credentials.toAscii());
+
+ //currentDownload = manager->post(request, ("data=" ));
+ manager->post(request, ("data=" ));
+
+ //ackOfResult function gets called when HTTP request is completed
+ //connect(currentDownload, SIGNAL(error()),SLOT(errorFromServer()));
+ connect(manager,SIGNAL(finished(QNetworkReply*)),this,SLOT(networkResponse(QNetworkReply*)));
+ connect(manager,SIGNAL(sslErrors(QNetworkReply*)),this,SLOT(errorFromServer(QNetworkReply*)));