Qt version: 4.3.0
Platform: Win, Unix and Mac
Web server: IIS and Apache.
==================

Qhttp with localhost appears to have a bug in Qt 4.3.0. All the signals are emitted with no errors but the content is not retrieved in temp.txt using this simple code snippet.

QUrl url("http://localhost/temp/index.htm");
http = new QHttp(this);
http->setHost(url.host(), QHttp::ConnectionModeHttp);
file = new QFile("c:/temp/temp.txt");
if (!file->open(QIODevice::Truncate|QIODevice::WriteOnly)) {
delete file;
file = 0;
return;
}
int httpGetId = http->get(url.path(), file);

Even the responseHeaderReceived() signal is received correctly with something like this -

"Response headerHTTP/1.1 200 OK
server: Microsoft-IIS/5.1
x-powered-by: ASP.NET"

The browser is able to display this http://localhost/temp/index.htm

If I replace localhost URL with any other URL, it works fine.
When I searched through the archives and found a similar issue for QHttp with localhost with an older version of Qt.
http://lists.trolltech.com/qt-intere...ad01082-0.html

Is there a work around in QHttp for localhost requests? Please help
Thanks for your help.