title: Post request via QNetworkAccessManager
body: <p>I have a problem while working with  an object of  QNetworkAccessManager class. 
  I want to send a POST request to a web server. 
  My code is  </p>
  
  <pre><code> QNetworkAccessManager *manager; 
      manager = new QNetworkAccessManager (); 
      QNetworkRequest req; 
      req.setUrl(QUrl("http://example.com")); 
      //Configure the parameters for the post request: 
      QByteArray postData; 
      postData.append("Login=log_name&amp;"); 
      postData.append("Password=some_pass"); 
      //Now create a QCookieJar: 
      manager-&gt;setCookieJar(new QNetworkCookieJar(manager)); 
      //Define the Request-url: 
      connect (manager, SIGNAL(finished(QNetworkReply *)), this, SLOT(replyFinish (QNetworkReply  *))); 
      //Send the request: 
      manager-&gt;post(req, postData); 
  </code></pre>
  
  <p>The code of the used SLOT is: </p>
  
  <pre><code>void MainWindow::replyFinish(QNetworkReply *reply) 
     { 
      QString answer = QString::fromUtf8(reply-&gt;readAll()); 
       qDebug () &lt;&lt; answer; 
     } 
  </code></pre>
  
  <p>The problem is that the answer is an empty string,but i believe it should be some html-code that describes 
  acceptance or rejection of the authorization. </p>
  
  <p>Thank you for your help.</p>