title: Qt multipart post problem
body: <p>I need help with sending multipart post request. Main problem is that server doesn't recognise my request's post body part. Server side is working fine with android, but not with Qt and NetworkAccessManager.</p>
  
  <p>Here is the code:</p>
  
  <p>Here I make bodyPart to send with request (transferData is a QByteArray with some text):</p>
  
  <pre><code>postBody.append("\r\n--"+ boundary + "\r\n");
  postBody.append("Content-Disposition: form-data; name=\"auth\" \r\n");
  postBody.append(" \r\n");
  postBody.append(auth + " \r\n");
  postBody.append("--"+ boundary + "\r\n");
  postBody.append("Content-Disposition: form-data; name=\"upload-test-data\" \r\n");
  postBody.append(" \r\n");
  postBody.append(transferData + " \r\n");
  postBody.append("--"+ boundary + "\r\n");
  postBody.append("Content-Disposition: form-data; name=\"upload-checksum\" \r\n");
  postBody.append(" \r\n");
  postBody.append(checksum.toHex() + " \r\n");
  postBody.append("\r\n--" + boundary + "--\r\n");
  </code></pre>
  
  <p>Here is headers:</p>
  
  <pre><code>request.setRawHeader("User-Agent", "MyApp 1.0");
  request.setRawHeader("Content-Type", "multipart/form-data; boundary="+boundary.toAscii());
  request.setHeader(QNetworkRequest::ContentLengthHeader, QString::number(postBody.size()).toAscii());
  </code></pre>