My case:
page with parameter can download:http://www.a2gold.com/index_en.php
page without parameter,can't download:http://feymercurial.com/forum/profil...wprofile&u=873


Code:

Qt Code:
  1. int main(int argc,char *argv[])
  2. {
  3. QApplication qapp(argc,argv);
  4. QHttp *http;
  5. http=new QHttp();
  6.  
  7. //QUrl *url=new QUrl("http://feymercurial.com/forum/profile.php?mode=viewprofile&u=873"); [COLOR="red"] //this can't download. [/COLOR]
  8.  
  9. QUrl *url=new QUrl("http://www.a2gold.com/index_en.php"); [COLOR="Red"] //this can download. [/COLOR]
  10.  
  11. QFileInfo fileinfo(url->path());
  12.  
  13.  
  14. QFile *file = new QFile(fileinfo.fileName());
  15. file->open(QIODevice::WriteOnly);
  16.  
  17. http->setHost(url->host(),80);
  18. int httpGetId=http->get(url->path(),file);
  19. qDebug() << httpGetId;
  20.  
  21. return qapp.exec();
  22. }
To copy to clipboard, switch view to plain text mode 

how can i download a page with a parameter?