title: CURL cli PUT request - send data and file
body: <p>I'm working on PUT method of API which will update entity defined by ID in URL. I need to send file and some additional data for user authentication (like signature and user public key). I fount out how I can send file:</p>
  
  <pre><code>curl -v -X PUT -T "file.epub" localhost:8080/api/book/?id=123
  </code></pre>
  
  <p>And find out how I can send data</p>
  
  <pre><code>curl -v -X PUT --data test=abc localhost:8080/api/book/?id=123
  </code></pre>
  
  <p>But how can I send file and additional data fields? </p>