Hi,

I'm trying to download a file from a website with a nokia N8.
It works when i compile it to windows but not when i compile it for symbian.
I cannot find the file anywhere on the phone.

What am I doing wrong?

main.cpp

Code:
#include <QtCore>
#include <QtNetwork/QHttp>
#include <QApplication>

int main(int argc, char* argv[])
{
        QApplication app(argc, argv);
        QFile file("page.html");
        QHttp http("****");
        http.get("page.html", &file);
        app.connect(&http, SIGNAL(done(bool)), &app, SLOT(quit()));

        QString filename = "version.html";

        if (!file.open(QIODevice::WriteOnly)) {
            fprintf(stderr, "Could not open %s for writing: %s\n",
                    qPrintable(filename),
                    qPrintable(file.errorString()));
            return false;
        }

        //file.write(data->readAll());
        file.close();


        if(file.open(QIODevice::ReadWrite)){

        }

        return app.exec();

}
pro file:
Code:
QT       += core gui network

TARGET = POC
VERSION = 1.0.0

TARGET = poc
TEMPLATE = app network

SOURCES += main.cpp

# Symbian-specific
symbian: {
    TARGET.UID3 = 0xEdbca140
    TARGET.CAPABILITY = NetworkServices
    TARGET.EPOCHEAPSIZE = 0x100000 \
        0x2500000
    TARGET.EPOCSTACKSIZE = 0x14000
}