POST csv/Text file using cURL : <p>How can I send POST request with a csv or a text file to the server running on a <code>localhost</code> using <code>cURL</code>. </p>

<p>I have tried <code>curl -X POST -d @file.csv http://localhost:5000/upload</code> but I get </p>

<blockquote>
  <p>{
      "message": "The browser (or proxy) sent a request that this server could not understand."
  }</p>
</blockquote>

<p>My server is <code>flask_restful API</code>. Thanks a lot in advance.</p>
