View Full Version : Qt Http implementation

11th August 2010, 08:39
I would like to use the QHttp class for my http server implementation. But the documentation for qt 4.6 says its obsolete. Is there any other class which I can use for my use-case ?

11th August 2010, 09:29
From the QHttp docs:
However, for new applications, it is recommended to use QNetworkAccessManager and QNetworkReply, as those classes possess a simpler, yet more powerful API and a more modern protocol implementation.

You perhaps want to look at QTcpServer for the server side of the equation though.

11th August 2010, 09:31
Try QTcpSocket, QNetworkAccessManager or QTcpServer.
Edit: Posted to late... :)

11th August 2010, 09:34
I would like to allow the client to download files from such a server ... will qtcpserver be helpful for this ?

11th August 2010, 10:30
If your program is the client then QNetworkAccessManager and QNetworkReply
If your program is the server then QTcpServer

11th August 2010, 11:31
Is there a qt example app which does file hosting using QTcpServer ?

11th August 2010, 23:36
Have you actually looked at the QTcpServer docs?