title: python3 requests 400 Bad Request
body: <p>I'm trying to login to webpage with requests but I'm getting this reason (400 Bad Request)</p>
  
  <p>What I'm trying is :</p>
  
  <p>First thing with Google Chrome inspect :</p>
  
  <p><a href="https://i.stack.imgur.com/opqKi.png" rel="nofollow noreferrer">1img</a></p>
  
  <p><a href="https://i.stack.imgur.com/MLtxo.png" rel="nofollow noreferrer">2img</a></p>
  
  <p>My Code :</p>
  
  <pre><code>import requests
  
  from requests.packages.urllib3.exceptions import InsecureRequestWarning
  
  requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
  
  
  headers = {
      "Content-Type":"application/x-www-form-urlencoded",
      "User-Agent" : "Mozilla/5.0",
      "Referer": "https://doit.voicemail.centurylink.net/login",
  }
  
  
  data = {
      "DirectoryNumber": "1234567890",
      "Password": "1234567890",
      "next": "/"
  }
  
  with requests.Session() as c:
  
      response = c.post(url='https://doit.voicemail.centurylink.net/login',
          headers=headers,
          data=data,
          verify=False)
  
      print(response.history, response.url, response.status_code, response.reason)
  </code></pre>
  
  <p>How can I do this ?</p>