title: Passing Parameters into POST method in Python
body: <p>I am trying to create a nameset using the POST method on the given server(url)</p>
  
  <p>I tried several methods to pass the parameters, but I still get the missing parameters' error. Can somebody please help me out?</p>
  
  <p>I am running Python file in cygwin64.</p>
  
  <p>The Code:</p>
  
  <pre><code>import requests
  
  import json
  
  URL = "http://xxx.xx.xxx.xxx/m***/w**/nameset"
  
  payload = {'name':'Test'}     
  header = {
      "content-type": "application/json" 
  }
  # create a nameset
  r2 = requests.post(url = URL, auth=('admin', 'admin'), params=payload, headers=header)
  
  print r2.text
  
  print r2.status_code
  </code></pre>
  
  <p><strong>The error on the terminal:</strong> </p>
  
  <pre><code>{"error": {"message": "Missing control \"params\"", "code": 0}}
  400
  </code></pre>