title: simplexml_load_file() failed to open stream connection refused
body: <p>I am trying to load xml contents from a remote server.  I am trying to do this on our website hosted by Go Daddy.  I am using simplexml_load_file() to do so.  Here is the error:</p>
  
  <blockquote>
    <p>Warning: simplexml_load_file(<a href="https://remote-server/login_API_SP.php?id=Lake&amp;p=asdfawefasdf12ds&amp;ia=206.19.211.224" rel="nofollow">https://remote-server/login_API_SP.php?id=Lake&amp;p=asdfawefasdf12ds&amp;ia=206.19.211.224</a>): failed to open stream: Connection refused in /home/rjnonline/public_html/index.php on line 185</p>
    
    <p>Warning: simplexml_load_file(): I/O warning : failed to load external entity "<a href="https://remote-server/login_API_SP.php?id=Lake&amp;p=asdfawefasdf12ds&amp;ia=206.19.211.224" rel="nofollow">https://remote-server/login_API_SP.php?id=Lake&amp;p=asdfawefasdf12ds&amp;ia=206.19.211.224</a>" in /home/rjnonline/public_html/index.php on line 185 </p>
  </blockquote>
  
  <p>I replaced our actual remote server with "remote-server."</p>
  
  <p>The things That I tried:</p>
  
  <ol>
  <li>Checked to see if <code>allow_url_fopen</code> and <code>allow_url_include</code> were on. They are both on.</li>
  <li>I've tried to use cURL, I was met with an exception.</li>
  <li>I typed the URL in the browser, I was able to get the results back.</li>
  <li>Used <code>file_get_contents</code>, same result.</li>
  <li>Checked the header information on the API.  Here it is:<br>
  <code>header('Access-Control-Allow-Origin: *');</code></li>
  </ol>
  
  <p>Running out of options here so I thought I reach out and see if anyone can help me.  </p>