Note that there are some explanatory texts on larger screens.

plurals
  1. POheader("Content-type: text/css"); is working in Firefox and Chrome, but in Internet Explorer 9 it shows up as 'text/html'
    text
    copied!<p><code>header("Content-type: text/css");</code> works in Firefox, Chrome and other, but not in Internet&nbsp;Explorer&nbsp;9. I am not sure what's up.</p> <p>In Chrome and Firework it shows the style sheet if I open it in its own tab and it's being applied to the page.</p> <p>In Chrome under Network in the developer tools it says the type is <code>text/css</code> and the status is 200.</p> <p>In Internet&nbsp;Explorer&nbsp;9, it wants to download the style sheet if I open it in its own tab and it's not being applied to the page.</p> <p>In the F12 developer tools you can click on network, start capturing and refresh the page. It shows the <code>Style.css.php</code>. The type is <code>text/html</code> and the result is 406.</p> <p>This is in the head:</p> <pre><code>&lt;link rel="stylesheet" type="text/css" href="/assets/css/style.css.php" media="screen" /&gt; </code></pre> <p>Request headers:</p> <pre><code>Key Value Request GET /assets/css/main.css HTTP/1.1 Accept text/css Referer http://10.0.1.5/ Accept-Language en-US User-Agent Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) Accept-Encoding gzip, deflate Host 10.0.1.5 Connection Keep-Alive Cookie PHPSESSID=*Hidden* </code></pre> <p>Response headers:</p> <pre><code>Key Value Response HTTP/1.1 406 Not Acceptable Date Fri, 01 Apr 2011 10:12:42 GMT Server Apache/2.2.14 (Ubuntu) Alternates {"main.css.php" 1 {type application/x-httpd-php}} Vary negotiate TCN list Keep-Alive timeout=15, max=100 Connection Keep-Alive Content-Type text/html; charset=iso-8859-1 </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload