title: Uploading files using requests and send extra data
body: <p>I am trying to upload a file using <a href="http://requests.readthedocs.org/en/latest/">requests</a>. I need to upload a PDF file and at the same time send some other data to the form like the author's name.</p>
  
  <p>I tried this:</p>
  
  <pre><code>requests.get(url, files = {"file":open("file.txt"), "author" : "me" })
  </code></pre>
  
  <p>But it doesn't send data to the form.</p>