Is it true that QNetworkAccessManager has no built-in support for http redirection?
I would like to download raw html from the Internet but it seems that I can't get to the final redirected webpage.

Qt Code:
  1. #ifndef PROGRAM_H
  2. #define PROGRAM_H
  3.  
  4. #include <QtNetwork>
  5. #include <QtCore>
  6.  
  7. class Program : public QObject
  8. {
  9. Q_OBJECT
  10.  
  11. public:
  12. Program()
  13. {
  14. net = 0;
  15. }
  16. ~Program()
  17. {
  18. delete net;
  19. }
  20. void run()
  21. {
  22. net = new QNetworkAccessManager;
  23. connect(net, SIGNAL(finished(QNetworkReply*)),this, SLOT(replyFinished(QNetworkReply*)));
  24. net->get(QNetworkRequest(QUrl("http://www.yahoo.com")));
  25. }
  26.  
  27. private slots:
  28. void replyFinished(QNetworkReply* r){
  29. QString s = r->readAll();
  30. qDebug() << s;
  31. }
  32. private :
  33. QNetworkAccessManager* net;
  34. };
  35.  
  36. #endif // PROGRAM_H
To copy to clipboard, switch view to plain text mode 

When run it called, I got the following:
Qt Code:
  1. <!-- w84.fp.sk1.yahoo.com uncompressed/chunked Thu Jul 7 08:37:01 PDT 2011 -->
To copy to clipboard, switch view to plain text mode 
instead of the final redirected webpage.