title: Response status code 400 when using python module Requests with Sitescout API
body: <p>I have a client id and client secret and am attempting to generate an auth token by following <a href="http://www.sitescout.com/support/api/#client_credentials" rel="nofollow">Sitescout's api docs</a>. I'm using python module Requests and am getting a 400 status code back, aka malformed request, but I can't seem to figure out why.</p>
  
  <p>My code: </p>
  
  <pre><code>import requests
  
  url = "https://api.sitescout.com/oauth/token"
  headers = { 
              "Host": "api.sitescout.com",
              "Authorization": "Basic YmVldGhvdmVuOmxldG1laW4=",
              "Content-Type": "application/x-www-form-urlencoded",
              "Accept": "application/json",
              "Content-Length": "41"
          }
  
  # Do the HTTP request
  response = requests.post(url, headers=headers)
  
  response.status_code
  </code></pre>
  
  <p>That is the fake base64 Authorization header provided in the docs so this snippet returns a 401 error, aka unauthorized (I have my own auth of course).</p>
  
  <p>Can anyone tell me what's wrong with this?</p>