title: Get Network Error (dns_unresolved_hostname) using Requests, Urllib and Pandas
body: <p>Trying to call a URL and get an HTML table from an internal server on network.</p>
  <p>When entering a URL into a browser, the page and table load.</p>
  <p>When calling URL in Python using Requests, URLLIB, and Pandas, a Network Error (<code>dns_unresolved_hostname</code>) is returned.</p>
  <p>I have updated the hosts file to include Localhost. I unchecked &quot;Don't use proxy server for local addresses&quot;. I can ping the server and it replies. I have changed the server name to the IP address and tried removing the port in the URL. No idea here.</p>
  <pre><code>import requests 
  r = requests.get('http://fc12rp01:8000/bin/ReportCall.py?rule=N2') 
  print(r.content)
  </code></pre>
  <p>Returns:</p>
  <pre><code>&lt;HTML&gt;&lt;HEAD&gt;...........&lt;big&gt;Network Error (dns_unresolved_hostname)
  </code></pre>
  <p>Proxy Settings:</p>
  <p><img src="https://i.stack.imgur.com/N55Aa.png" alt="Proxy Settings" /></p>
  <p>Host file settings:</p>
  <p><img src="https://i.stack.imgur.com/cFZZB.png" alt="Host file settings" /></p>