title: Requests - Python - Failed to establish a new connection: [Errno 111] Connection refused
body: <p>I have a server running in Ubuntu OS, and I am using Python for getting to learn.</p>
  <p>I started an app which I installed, When I opened the app in browser the page is not secure, like this -</p>
  <p><img src="https://i.stack.imgur.com/LXxU0.png" alt="your image description goes here" /></p>
  <p>I am getting some data from this page using python -</p>
  <pre><code>from urllib3.exceptions import InsecureRequestWarning
  import requests
  requests.urllib3.disable_warnings(category=InsecureRequestWarning)
  req = requests.get(url='https://127.0.0.1:7001', verify=False)
  </code></pre>
  <p>This shows an error -</p>
  <pre><code>requests.exceptions.ConnectionError: HTTPSConnectionPool(host='127.0.0.1', port=7001): Max retries exceeded with url: / (Caused by 
  NewConnectionError('&lt;urllib3.connection.VerifiedHTTPSConnection object at 0x7fc2ae5f94f0&gt;: Failed to establish a new connection: [Errno 111] Connection refused'))
  </code></pre>
  <p>When I print the variable <code>req</code> to check the status, but python shows the variable is not defined</p>
  <p>How to solve this, thanks</p>