#include #include #include int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); // QxtWebHttpConnector c; c.start ( 4030, QHostAddress::LocalHost ); forever { c.waitForNewConnection(-1); QxtWebStatelessConnection *st = c.nextPendingConnection(); if( st ) { st->waitForReadyRead(10000); QTextStream stream(st); stream<<""; stream<<""<<st->request().path()<<""; stream<<""; stream<<"

HAI! I CAN HAZ HTML!

"; stream<<""; stream.flush(); delete (st); } } return app.exec(); }