Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Need to create http webserver using Qt 4.7 in C++

I need to create a http web server which responds to http clients using Qt 4.7
I have gone through the API and found few servers, but how to create a http server using the API
Any hints and guidance on this please....i am totally new to this

also what is .pro in Qt 4.7 and is it the same as doing in Visual studio

like image 915
sriks Avatar asked Dec 30 '10 08:12

sriks


2 Answers

You should use QTcpServer , check this example.

like image 193
ismail Avatar answered Sep 19 '22 08:09

ismail


QtWebApp is a HTTP 1.1 server based on QTcpServer. It supports GET and POST method, file uploads, cookies and sessions.

like image 41
Stefan Avatar answered Sep 19 '22 08:09

Stefan