title: Why am I getting a 403 status when using requests VS urllib2?
body: <p>My request works fine when using urllib2, but I get a 403 error when using requests instead.</p>
  
  <pre><code>import urllib2
  
     url = 'https://api.optconnect.com/summit/beta/accounts/login/app_secret'
     data = {'accountId': 000,
          'applicationId': 000,
          'secret': '000'}
     data = json.dumps(data)
     headers = {'accept': 'application/json', 'content-type': 'application/json' }
     req = urllib2.Request(url, data ,headers)
     response = urllib2.urlopen(req)
     print(response.getcode())
  </code></pre>
  
  <blockquote>
    <p>200</p>
  </blockquote>
  
  <pre><code>import requests
  
  
     url = 'https://api.optconnect.com/summit/beta/accounts/login/app_secret'
     data = {'accountId': 000,
          'applicationId': 000,
          'secret': '000'}
     data = json.dumps(data)
     headers = {'accept': 'application/json', 'content-type': 'application/json' }
     req = requests.get(url=url, data=data, headers=headers)
     print(req.status_code)
  </code></pre>
  
  <blockquote>
    <p>403</p>
  </blockquote>