title: Get remote webpage content by its IP address & HTTP Host header?
body: <p>I would like to fetch the content of a webpage via its IP address. There are many other websites which also share this IP, hence the use of HTTP Host header.
  This PHP web server has no DNS service and will respond to <br></p>
  
  <pre><code>file_get_contents("http://allaboutcircuits.com");
  </code></pre>
  
  <p>by</p>
  
  <pre><code>php_network_getaddresses: getaddrinfo failed: Name or service not known 
  </code></pre>
  
  <p>From several examples, I tried:</p>
  
  <pre><code>$context = stream_context_create(array('http' =&gt; array('header' =&gt; 'Host:allaboutcircuits.com')));
  $url = 'http://68.233.243.63';
  echo file_get_contents($url, 0, $context);
  </code></pre>
  
  <p>and it seems that I still have the same error <strong>at the line of file_get_contents()</strong>, meaning file_get_contents() still queries DNS for the Host header albeit the provided IP address.
  <br></p>
  
  <p>How to I fix this code ?</p>