title: python requests POST 400 error
body: <p>I've been looking to many questions similar to mine but I could not find a solution.</p>
  
  <p>I'm using <em>requests</em> to perform a POST request. I've tried a lot of combinations inside the request but nothing returns a 201 ok.</p>
  
  <p>Here is my code:</p>
  
  <pre><code> import json
   import requests
  
   if __name__ == '__main__':
  
      headers = {'content-type' : 'application/json'}
      url = "http://myserver/ext/v3.1/test_device"
      message = {"atribute_a": "value", "atribute_b": "valueb"}
      params = {"priority":"normal"}
  
      r = requests.post(url, params=params, headers=headers, data = json.dumps(message) )
      print(r)
  </code></pre>
  
  <p>I've also tried withou json.dumps but it also gives me 400 bad request. I've also tried to add the params directly to the url like: <em>...?priority=normal</em> but with no success.</p>