title: Python requests library how to pass Authorization header with single token
body: <p>I have a request URI and a token. If I use:</p>
  
  <pre><code>curl -s "&lt;MY_URI&gt;" -H "Authorization: TOK:&lt;MY_TOKEN&gt;"
  </code></pre>
  
  <p>etc., I get a 200 and view the corresponding JSON data.
  So, I installed requests and when I attempt to access this resource I get a 403 probably because I do not know the correct syntax to pass that token. Can anyone help me figure it out?
  This is what I have:</p>
  
  <pre><code>import sys,socket
  import requests
  
  r = requests.get('&lt;MY_URI&gt;','&lt;MY_TOKEN&gt;')
  r. status_code
  </code></pre>
  
  <p>I already tried:</p>
  
  <pre><code>r = requests.get('&lt;MY_URI&gt;',auth=('&lt;MY_TOKEN&gt;'))
  r = requests.get('&lt;MY_URI&gt;',auth=('TOK','&lt;MY_TOKEN&gt;'))
  r = requests.get('&lt;MY_URI&gt;',headers=('Authorization: TOK:&lt;MY_TOKEN&gt;'))
  </code></pre>
  
  <p>But none of these work.</p>