title: Python Requests API call not working
body: <p>I'm having an issue converting a working cURL call to an internal API to a python requests call. </p>
  
  <p>Here's the working cURL call: </p>
  
  <pre><code>curl -k -H 'Authorization:Token token=12345' 'https://server.domain.com/api?query=query'
  </code></pre>
  
  <p>I then attempted to convert that call into a working python requests script here: </p>
  
  <pre><code>#!/usr/bin/env python
  import requests
  
  url = 'https://server.domain.com/api?query=query'
  headers = {'Authorization': 'Token token=12345'}
  
  r = requests.get(url, headers=headers, verify=False)
  
  print r
  </code></pre>
  
  <p>I get a HTTP 401 or 500 error depending on how I change the headers variable around. What I do not understand is how my python request is any different then the cURL request. They are both being run from the same server, as the same user. </p>
  
  <p>Any help would be appreciated</p>