How to analyze http request in server?
-
i want to send a http request by QNetworkAccessManager in client , i want also to accept http request and analyze http request in server .but i don't know how to do it?
-
The easiest way is to use PHP on ubuntu
-
would you like to analyze URL sent through QNetworAccessManager ? Which is your web-server. Writing some CGI script at server side should solve your problem. This is nothing to do with any Qt function.
-
i have came true http server by QTcpServer ,but send litter message by QTextStream,for instabce,
@QTextStream os(socket);
os <<"i love you";@
when i accepet this message in client by QNetworkReply
@QObject::connect(urlReplay,SIGNAL(readyRead()),this,SLOT(download()));@
i can't get messgae?why ?http://doc.qt.digia.com/solutions/4/qtservice/qtservice-example-server.html
but i have another question?
how to come true Long connection in httpserver ?
-
It is better to post different question and get the right answer.