QHttp class reference says:
"This class provides a direct interface to HTTP that allows you to download and upload data with the HTTP protocol. However, for new applications, it is recommended to use QNetworkAccessManager and QNetworkReply, as those classes possess a simpler, yet more powerful API and a more modern protocol implementation."
Maybe You should Use QNetworkAccessManager and QNetworkReply? I use It to download XML file, and it works well (only in one case I have problems with it).
void MainWindow::getXML()
{
QNetworkRequest request
(QUrl("http://something.com"));
NetRepl = NetAccMan.get(request);
connect(NetRepl, SIGNAL(readyRead()), this, SLOT(parseXML()));
}
void MainWindow::parseXML()
{
//parse Your XML
}
best regards
Tomasz
void MainWindow::getXML()
{
QNetworkRequest request(QUrl("http://something.com"));
NetRepl = NetAccMan.get(request);
connect(NetRepl, SIGNAL(readyRead()), this, SLOT(parseXML()));
}
void MainWindow::parseXML()
{
//parse Your XML
}
best regards
Tomasz
To copy to clipboard, switch view to plain text mode
Bookmarks