title: QNetworkAccessManager read outgoingData and keep it in QIODevice
body: <p>I'm trying to save all outgoing POST data in QtWebKit.</p>
  
  <p>I do it using overriding <strong>QNetworkReply *QNetworkAccessManager::createRequest(Operation op, const QNetworkRequest &amp;request, QIODevice <em>outgoingData)</em></strong> method and reading an outgoingData that contains outgoing POST data.</p>
  
  <p>The problem is that after reading it, the data become not available in the QIODevice. </p>
  
  <p>How to save an outgoing (PUT, POST) data and keep it available for the future internal Qt operations? </p>
  
  <p>If I need to use another approach to save PUT/POST data - please, let me know.</p>
  
  <p>Code example:</p>
  
  <pre><code>QNetworkReply *MyNetworkAccessManager::createRequest(Operation op, const QNetworkRequest &amp;request, QIODevice *outgoingData)
  {     
   QByteArray bArray = outgoingData-&gt;readAll();
   // save bArray (that contains POST outgoing data) somewhere
   // do other things, and outgoingData now has no data anymore, as it was already read to bArray 
  }
  </code></pre>
  
  <p>I have tried</p>
  
  <pre><code>QByteArray bArray = outgoingData-&gt;readAll();
  outgoingData-&gt;write(bArray);
  qDebug() &lt;&lt; bArray;
  </code></pre>
  
  <p>But in this case I get "QIODevice::write: ReadOnly device" message.</p>
  
  <p>How to save the outgoing POST/PUT data in Qt?</p>
  
  <p>Thanks.</p>