title: What rules apply to MIME boundary?
body: <p>When you are writing MIME, you separate different chunks of your message with a certain boundary. I failed for some reason to find any documentation explaining this boundary, but here's what I gathered from examples:</p>
  
  <ol>
  <li><p>Boundary can be any string of letters and numbers, i. e. "d29a0c638b540b23e9a29a3a9aebc900aeeb6a82".</p></li>
  <li><p>There are no rules for generating the boundary, you can just md5sum the name of your beloved, and here you go, you've got your boundary.</p></li>
  <li><p>If you are sending MIME over HTTP, you must add a header "Content-Type" specifying that you do, and your boundary, contents of a header may look like this:</p>
  
  <p>multipart/form-data; boundary=d29a0c638b540b23e9a29a3a9aebc900aeeb6a82</p></li>
  <li><p>In the body of your message, the boundary should be preceded with "--", like:</p>
  
  <p>--d29a0c638b540b23e9a29a3a9aebc900aeeb6a82</p></li>
  </ol>
  
  <p>But following these rules (and <a href="https://stackoverflow.com/questions/2627949/upload-file-with-post-method-on-qt4/2634842#2634842">this</a> helpful answer) I failed to generate POST query that server would accept. Am I missing something? Did I get something wrong?</p>