Advertisement
Guest User

Untitled

a guest
May 28th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. #include <qapplication.h>
  2. #include <qfile.h>
  3. #include <qhttp.h>
  4.  
  5.     int main(int argc, char *argv[])
  6.     {  
  7.         QApplication app(argc, argv, false);
  8.         QHttp http;
  9.  
  10.         QObject::connect(&http, SIGNAL(done(bool)), &app, SLOT(quit()));
  11.  
  12.         QFile file("test.key");
  13.         if (!file.open(IO_WriteOnly))
  14.             return -1;
  15.  
  16.         http.setHost("storage.brandonholtsclaw.com");
  17.         http.get("bluecherry/keysvr/index.php", &file);
  18.  
  19.         return app.exec();
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement