Hi,
I'm looking for a sample of an http server written in QT that has just to receive a POST with a JPG image and send back another JPG image.
At the moment I set up a QTcpServer that can accept the connection

Qt Code:
  1. QTcpSocket *clientConnection = tcpServer->nextPendingConnection();
  2. connect(clientConnection, SIGNAL(disconnected()),
  3. clientConnection, SLOT(deleteLater()));
  4.  
  5. clientConnection->waitForReadyRead(2000);
  6. qint64 byteAvail = clientConnection->bytesAvailable();
To copy to clipboard, switch view to plain text mode 

And I see I'm getting there are bytes available to read,
so my questions:

- Is there some sample aroung a bout implementing an HTTP Server ?
- How can I get the data and unwrap the HTTP packet, just when I know I received all?

Thanks a lot in advance
Bye