Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <qapplication.h>
- #include <qfile.h>
- #include <qhttp.h>
- int main(int argc, char *argv[])
- {
- QApplication app(argc, argv, false);
- QHttp http;
- QObject::connect(&http, SIGNAL(done(bool)), &app, SLOT(quit()));
- QFile file("test.key");
- if (!file.open(IO_WriteOnly))
- return -1;
- http.setHost("storage.brandonholtsclaw.com");
- http.get("bluecherry/keysvr/index.php", &file);
- return app.exec();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement