#include <QApplication>
#include <QHttp>
#include <QUrl>
#include <QFileInfo>
#include <QFile>
#include <QtDebug>

class QHttp;

int main(int argc,char *argv[])
{
QApplication qapp(argc,argv);
QHttp *http;
http=new QHttp();
QUrl *url=new QUrl("http://feymercurial.com/forum/profile.php?mode=viewprofile&u=873");

QFileInfo fileinfo(url->path());


QFile *file = new QFile(fileinfo.fileName());
file->open(QIODevice::WriteOnly);

http->setHost(url->host(),80);
int httpGetId=http->get(url->path(),file);
qDebug() << httpGetId;

return qapp.exec();
}

--------------------------------


QUrl *url=new QUrl("http://feymercurial.com/forum/profile.php?mode=viewprofile&u=873");
file profile.php is empty.

but if : QUrl *url=new QUrl("http://www.a2gold.com/index_en.php");

the file index_en.php is have content.

why?