Hi again,
I want to download source code from a webpage - I've got following code:
file = new QFile("something.txt");
http->setHost(url.host(), url.port(80));
http->get(url.path(), file);
QHttp * http;
QFile * file;
file = new QFile("something.txt");
QUrl url("SomeUrl");
http = new QHttp;
http->setHost(url.host(), url.port(80));
http->get(url.path(), file);
To copy to clipboard, switch view to plain text mode
Everything compiles well, but my file is sometimes empty or it has not whole webpage code, what should I do?
Bookmarks