Qt HTTP server
-
"KodeClutz":http://kodeclutz.blogspot.com/ just published a blog entry praising an HTTP server written completely with Qt:
bq. QHttpServer: Web Apps in Qt
Qt is a great GUI toolkit, but it is also an entire C++ standard library waiting to be used for other tasks. In addition the network module is really powerful. I’ve been playing around with node.js for a while now, and realized that Qt’s default asynchronous nature maps over perfectly to create a event-based web server. To make things better, Ryan Dahl’s small and fast http-parser is freely available. So I just combined the two, and here is QHttpServer.You can find the entire blog post on http://kodeclutz.blogspot.com/2011/02/qhttpserver-web-apps-in-qt.html the sources are on "github":https://github.com/nikhilm/qhttpserver.
-
thanks volker, was looking for server.. see this thread "here":http://developer.qt.nokia.com/forums/viewthread/854/ ... will give this a shot for my pet project but on hold now.. past few weeks :(
-
If you are searching for a Qt based HTTP server, try out QtWebApp, which contains such a library plus an example application.
The library support persistent connections as well as cookies and file-uploads. Usage is a simple as Java servlets.
-
another option is tufão at: http://code.google.com/p/tufao/
-
more three options:
-
I have tried successfully with QtService from QtSolutions:
"QtService":http://qt.digia.com/Product/Qt-Add-Ons/Qt-Solutions-Archive/
-
[quote author="antonio" date="1378486120"]Hi,
I tried to compile QHttpServer on Windows and I had problems like this:..\build\moc_qhttpconnection.cpp(50) : warning C4273: 'QHttpConnection::qt_stati
c_metacall' : vinculación de DLL incoherente"dll entailment inchorente"[/quote]
how to write http client and http server .thank you
-
"KodeClutz":http://kodeclutz.blogspot.com/ just published a blog entry praising an HTTP server written completely with Qt:
bq. QHttpServer: Web Apps in Qt
Qt is a great GUI toolkit, but it is also an entire C++ standard library waiting to be used for other tasks. In addition the network module is really powerful. I’ve been playing around with node.js for a while now, and realized that Qt’s default asynchronous nature maps over perfectly to create a event-based web server. To make things better, Ryan Dahl’s small and fast http-parser is freely available. So I just combined the two, and here is QHttpServer.You can find the entire blog post on http://kodeclutz.blogspot.com/2011/02/qhttpserver-web-apps-in-qt.html the sources are on "github":https://github.com/nikhilm/qhttpserver.
I have just put the finishing touches on my own HTTP server implementation, QHttpEngine. The goal of the project is to produce a simple set of classes that make it easy to add an HTTP server to an existing application.
You could use the library to add a local API to an application, for example. QHttpEngine uses Qt's introspection facilities to expose slots from a
QObject
class as HTTP endpoints. The library is also capable of serving directories containing static content - even resource directories.