title: gaierror: [Errno -2] Name or service not known
body: <pre><code>  def make_req(data, url, method='POST')  
      params = urllib.urlencode(data)
      headers = {"Content-type": "application/x-www-form-urlencoded",
                 "Accept": "text/plain",
                 }
      conn = httplib.HTTPSConnection(url)
      conn.request(method, url, params, headers)
      response = conn.getresponse()
      response_data = response.read()
      conn.close()
  </code></pre>
  
  <p>But it is throwing: <code>in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): gaierror: [Errno -2] Name or service not known</code></p>
  
  <p>What is the reason ? What is this error? </p>