Hi,

I tried to performe a simple request with QHtpp object. Everything works well and my code pass correctly by the both slots: "done" and "requestFinished".
But when the QUrl adress is not valid or correct, QHttp doesn't pass througth any slot. So, How I can know if the request failed ? It's like the request never endding !
Can you help me to solve this problem, thank.

Qt Code:
  1. QHtpp *http;
  2. QFile *page_html;
  3. ...
  4. ..
  5. QUrl adresse("http://forum.qtfr.org");
  6. page_html = new QFile(windowTitle()+"_page.html");
  7. page_html->setPermissions(QFile::ReadUser | QFile::WriteUser | QFile::ReadOther | QFile::WriteOther) ;
  8. http = new QHttp(adresse.host(),80);
  9. if (http!=NULL) {
  10. connect(http, SIGNAL(done(bool)), this, SLOT(http_done(bool)));
  11. connect(http, SIGNAL(requestFinished(int ,bool )), this, SLOT(http_requestFinished(int, bool)));
  12. http->get(adresse.toString(),page_html);
  13. }
To copy to clipboard, switch view to plain text mode