XHTML 1.0 Content-Negotiation

I am submitting this post IAW with the request for Content-Negotiation techniques for various web servers as outlined at: 

http://www.w3.org/2003/01/xhtml-mimetype/content-negotiation

My Web Service Provider employs the Zeus/3.4 Server which does not recognize MIME-type application/xhtml+xml to associate with XHTML documents. Their Technical Department was not encouraging about effecting Content-Negotiation but I found that inserting the following PHP code ..........

if ( isset($_SERVER["HTTP_ACCEPT"]) and 
stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml") ) {My
header("Content-type: application/xhtml+xml");
}
else {
header("Content-type: text/html");
}

.......... at the beginning of the document as a pre-processor works for the Zeus Server. At least my pages served in this fashion indicate the content type to be application/xhtml+xml when Viewing Page Info. in the Firefox 1.0.6 Browser and as text/html in MSIE 6.0 -- in the same manner as the W3C Home Page.

-- 
James Pickering
http://www.jp29.org/
XHTML served via content-negotiation

Received on Saturday, 6 August 2005 20:26:55 UTC