title: upload binary file using python requests
body: <p>I am uploading a file using requests library below is the code:</p>
  
  <pre><code>files = {'file': open(full_file_name, 'rb')}
  headers = {"content-type": 'application/x-www-form-urlencoded'}
  final_resp = requests.put(loc, files=files, headers=headers)
  </code></pre>
  
  <p>The problem is some extra contents have been added to the file's start and end point.</p>
  
  <p>The contents added to the start point is:</p>
  
  <pre><code>--b16010ae7646a031a5adc64ac0661e72
  Content-Disposition: form-data; name="file"; filename="1016064585-65769268.csv"
  </code></pre>
  
  <p>The contents added to the endpoint is:</p>
  
  <p><code>
  --b16010ae7646a031a5adc64ac0661e72--</code></p>
  
  <p>But when the same file is uploaded through the <a href="https://www.getpostman.com/downloads/" rel="noreferrer">postman</a> these problems are not arising.</p>
  
  <p>here is the screenshot of the postman <a href="https://i.stack.imgur.com/mNj43.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mNj43.png" alt="enter image description here"></a>.</p>
  
  <p>The header of the postman is:</p>
  
  <p><strong>application/x-www-form-urlencoded</strong></p>