I use QNetworkAccessManager in Qt and QNetworkRequest wrote an HTTP client request, the server is written in Qt, I on the server should be how to respond to the client's request?
CodePudding user response:
Server using TCP/IP readyRead signal corresponding to the groove function in response to the end of the service data, and then write a HTTP protocol parse the received data, and then submitted to the end of the service, the client receive the response using finished signal corresponding to the groove function as a result,