title: CURL -T (--upload-file equivalent) in Python Requests
body: <p>I am looking for an equivalent of curl:</p>
  
  <pre><code>curl http://my_url:8080 -H "Content-type: application/csv" -T test.csv
  </code></pre>
  
  <p>I am especially looking for an alternative to <code>-T filepath</code>.</p>
  
  <p>I've read the <a href="http://docs.python-requests.org/en/master/api/" rel="noreferrer">request documentation</a> and all the easy convert method like <a href="https://curl.trillworks.com/" rel="noreferrer">https://curl.trillworks.com/</a> or <a href="https://github.com/spulec/uncurl" rel="noreferrer">uncurl</a> doesn't convert the parameter <code>-T</code>.</p>