Hello Guys,

Recently I try libqxt and make web service, so far OK I try webslot with get method.
and I try make simple aplication using QNetworkAccesManager and doing a post wethod, the problem is in server side I can receive signal and byte send , but when I try to debug it's show nothing. below is some code

client :
Qt Code:
  1. QNetworkAccessManager *manager = new QNetworkAccessManager(this);
  2. QNetworkRequest request;
  3. request.setUrl(QUrl("http://192.168.88.131:8080/"));
  4. request.setHeader(QNetworkRequest::ContentTypeHeader,QVariant("application/x-www-form-urlencoded"));
  5. request.setRawHeader("Connection","Close");
  6.  
  7. QNetwork *reply = manager->post(request,"testdatasend");
To copy to clipboard, switch view to plain text mode 

and in server I sub class QxtWebServiceDirectory and reimplement indexRequested() here is the some code

Qt Code:
  1. void WebService::indexRequested(QxtWebRequestEvent *event)
  2. {
  3. qDebug() << "Request Headers service: " << event->headers;
  4.  
  5. if (event->method.compare("POST")==0)
  6. {
  7. qDebug() << "incoming...post";
  8. QxtWebContent *myContent = event->content;
  9. QByteArray requestContent = myContent->readAll();
  10. qDebug() << "Content: " << requestContent
  11. qDebug() << "Bytes to read: " << myContent->unreadBytes();
  12. }
  13. }
To copy to clipboard, switch view to plain text mode 

the problem is I try post "testdatasend" but in server I didn't receive anydata in "Content: " but in "Bytes to read: " I get 12(total data send),
so what am I missing in here.

tia,
yandi