title: Set content type of part of multipart/mixed request in CURL
body: <p>I want to send json request and several files in one http request. I'm using <code>multipart/mixed</code> request for that</p>
  
  <pre><code>curl -H "Content-Type: multipart/mixed" -F "request=@body.json; type=application/json" -F "file1=@2.xml" -F "file2=@2.pdf" -X POST hostName
  </code></pre>
  
  <p><code>request</code> field has <code>application/json</code> content type and by that indication I define that this part is json request and other parts are files.</p>
  
  <p>My question is how to inline request body in curl request. I try to use</p>
  
  <pre><code>curl -H "Content-Type: multipart/mixed" -F "request={"param1": "value1"}" -F "file1=@2.xml" -F "file2=@2.pdf" -X POST hostName
  </code></pre>
  
  <p>but content type of <code>request</code> will be <code>plain/text</code></p>