Home > other >  Qt in the HTTP response
Qt in the HTTP response

Time:10-16

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,

CodePudding user response:

reference 1st floor h247932449 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, the

The server to parse yourself?
  • Related