I have tried to make http request with GET method, but I couldn't obtain the result of it.
My code:
Qt Code:
  1. QHttp http;
  2. http.setHost("appmsg.gadu-gadu.pl");
  3. QHttpRequestHeader dataRequest("GET", QUrl::toPercentEncoding("/appsvc/appmsg4.asp?fmnumber=1247818&version=7,0,0,20&lastmsg=1"));
  4. dataRequest.setValue("Accept-Language", "pl");
  5. dataRequest.setValue("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.0; Windows 98)");
  6. dataRequest.setValue("Pragma", "no-cache");
  7. dataRequest.setValue("Host", "appmsg.gadu-gadu.pl");
  8. http.request(dataRequest);
  9. QString dataResult = http.readAll();
  10. qDebug() << dataResult;
To copy to clipboard, switch view to plain text mode 
What's wrong in this code? Why can't I get the result of request?