1 #include <QCoreApplication>
3 #include <QxtWebController>
4 #include <QxtFcgiConnector>
6 class test : public QxtWebController
10 test():QxtWebController("root")
19 "<form method='POST' enctype='multipart/form-data' action='/root/upload'>"
20 "File to upload: <input type=file name=upfile><br>"
21 "Notes about the file: <input type=text name=note><br>"
23 "<input type=submit value=Press> to upload the file!"
30 QByteArray d= QxtWebCore::content(100000000);
31 QxtWebCore::sendHeader();
34 QxtWebCore::socket()->write(d);
43 int main(int argc, char *argv[])
45 QCoreApplication app(argc, argv);
46 QxtWebCore core(new QxtFcgiConnector());