Home > Mobile >  QT how to receive the JSON data from the others in HTTP Post way
QT how to receive the JSON data from the others in HTTP Post way

Time:01-20

Others will be to specify the IP address of the port (009) 192.168: they send JSON data in HTTP Post way, I need to use the QT implementation of HTTP data receiving,
Don't want to use TCPsocket, could you tell me how to do?

CodePudding user response:

This only use QTcpSocket afraid you also make uncertain, at least to QTcpServer + QTcpSocket
Don't have a server how to accept HTTP requests
Don't want to use QTcpSocket sure there is no ready-made class can use
Qt - LABS in a GPL https://code.qt.io/cgit/qt-labs/qthttpserver.git
His compilation after installation in the Qt should increase QtHttpServer module
Or a third party library https://github.com/azadkuh/qhttp
(the above two, I have just seen used, don't know how to use, also don't know if it fit your request)
  •  Tags:  
  • Qt
  • Related