title: Php POST - get boundary value
body: <p>So I want to upload a file using curl, but the problem is: the post request contains a boundary variable that is checked upon by the website. I know this because I get errors when modifying this variable in Tamper Data.</p>
  
  <p>Http headers (important part):</p>
  
  <pre><code>Content-Type: multipart/form-data; boundary=----pluploadboundaryp18mu3sf5fus08pd11c3kvq163514
  </code></pre>
  
  <p>Post request:</p>
  
  <pre><code>------pluploadboundaryp18mu3sf5fus08pd11c3kvq163514\r\n
  Content-Disposition: form-data; name="name"\r\n
  \r\n
  1.jpg\r\n
  ------pluploadboundaryp18mu3sf5fus08pd11c3kvq163514\r\n
  Content-Disposition: form-data; name="imageData"; filename="1.jpg"\r\n
  Content-Type: image/jpeg\r\n
  \r\n
  {Filecontent}
  </code></pre>
  
  <p>So my question is: How can I bypass or duplicate this boundary?</p>
  
  <p>Edit: if you want to test yourself the form upload is located at:<a href="https://www.marktplaats.nl/syi/239/1399/plaatsAdvertentie.html" rel="nofollow">https://www.marktplaats.nl/syi/239/1399/plaatsAdvertentie.html</a></p>