title: Error: HTTPS site requires a 'Referer header' to be sent by your Web browser, but none was sent
body: <blockquote>
    <p>You are seeing this message because this HTTPS site requires a 'Referer
       header' to be sent by your Web browser, but none was sent. This header is
       required for security reasons, to ensure that your browser is not being
       hijacked by third parties.</p>
  </blockquote>
  
  <p>I was trying to login to a website using requests but received the error above, how do I create a  'Referer
     header'?</p>
  
  <pre><code>payload = {'inUserName': 'xxx.com', 'inUserPass': 'xxxxxx'}
  url = 'https:xxxxxx'
  req=requests.post(url, data=payload)
  print(req.text)
  </code></pre>