Content-Type not appearing in response
Posted: Mon Nov 13, 2006 1:55 pm
I'm trying to serve some XML with XSLT and I need Apache to server them both as text/xml. I added this line:to my apache2.conf but its made no difference. According to LiveHTTPHeaders and TamperData (both FireFox extensions) no Content-Type header is being sent in the response at all. Indeed to get a Content-Type header to be send I have to use PHP!
Why isn't Content-Type being sent at all in the first place?
Why is my AddType declaration being ignored
Why is ForceType (another thing I tried with an .htaccess) also making absolutely no difference?!
Frankly, this is pretty damn weird, what the hell does Apache think it is doing exactly?
And no this isn't anything to do with content negotiation before my browser is clearly accepting text/xml.
Code: Select all
AddType text/xml xml xsl xsltCode: Select all
header('Conten... you know the restWhy is my AddType declaration being ignored
Why is ForceType (another thing I tried with an .htaccess) also making absolutely no difference?!
Frankly, this is pretty damn weird, what the hell does Apache think it is doing exactly?
And no this isn't anything to do with content negotiation before my browser is clearly accepting text/xml.