title: How to pass credentials to RESTinstance POST Request in robot framework?
body: <p>Python Code (Working fine):</p>
  
  <pre><code> credentials = ("key","token")
   verify = False
   if not verify:
       from requests.packages.urllib3.exceptions import InsecureRequestWarning  
       requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
  
  response = requests.post(url, auth=credentials, data=json.dumps(payload), headers={'content-type': 'application/json'}, verify=verify)
  status = response.status_code
  </code></pre>
  
  <p>Robot Framework Code:</p>
  
  <p>I would like to duplicate same API testing in robot framework but i am stuck how to pass credentials to the RESTinstance POST method</p>
  
  <pre><code>*** Settings ***
  Library         REST    url=https://testhost.com   ssl_verify=${verify}
  
  *** Variables ***
  header = {"content-type": "application/json"}
  
  *** Test Cases ***
  Test Task
      POST     endpoint=/api/something   body=${payload}   headers=${header}
      Output   response status
  </code></pre>
  
  <p>ERROR RESPONSE STATUS - 401 </p>