Microsoft IIS 6 returns 500 Server Error on my php requests?
<p>Basically If i do </p>

<pre><code>print_r(get_headers('http://carom3d.gameis.com/download/download_client_0.asp'));
</code></pre>

<p>I get:</p>

<pre><code> Array
(
    [0] =&gt; HTTP/1.1 500 Internal Server Error
    [Connection] =&gt; close
    [Date] =&gt; Fri, 04 May 2012 19:00:28 GMT
    [Server] =&gt; Microsoft-IIS/6.0
    [P3P] =&gt; 'CAO PSA CONi OTR OUR DEM ONL'
    [X-Powered-By] =&gt; ASP.NET
    etc...
</code></pre>

<p>If i open <a href="http://carom3d.gameis.com/download/download_client_0.asp" rel="nofollow">http://carom3d.gameis.com/download/download_client_0.asp</a> I can see it without any problems.</p>

<p>Note that if I try <code>get_headers()</code> with any other url it works fine.</p>

<p>I have tried to set Header to fake a real requests with no luck:</p>

<pre><code>stream_context_set_default(
    array(
        'http' =&gt; array(
            'method' =&gt; 'HEAD',
            'header'=&gt;  "Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n".
                        "Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3\r\n".
                        "Accept-Language:it-IT,it;q=0.8,en-US;q=0.6,en;q=0.4\r\n".
                        "Connection: close"
        )
    )
);
</code></pre>
