Qt HTTP Server?

grefab picture grefab · Jun 26, 2010 · Viewed 47.5k times · Source

I'd like to write a small HTTP server application that receives HTTP GET requests, processes them and sends out a reply. Because of the history of the application I'd favor using Qt for this, but all I can find is the other (more common) direction: Send a request to a server and receive a reply using QNetworkAccessManager. What I need is something like a socket that, when a request comes in, produces an object where I can pick url etc. of this request, so I can send out an appropriate reply.

Am I just blind or is nothing like this in the Qt framework? If so, can you recommend alternatives?

Answer

Stefan picture Stefan · Feb 16, 2011

QtWebApp is a HTTP server with support of GET and POST method, cookies, sessions and file uploads. Using this library is as simple as writing a Java Servlet.

The project website is in german, however the downloadable files are all in english, including the documentation.