Re: XHTML 1.0 Content-Negotiation

Objective: To serve XHTML 1.0 documents as Content-Type application/xhtml+xml -- with XML declaration -- to browsers that recognize that MIME type and as text/html-- without XML declaration (in order to render in "standards" mode) -- to other browsers.

Web-Sniffer -- View HTTP Request and Response Header -- reports for http://www.jp29.org/indexbak.php served as XHTML 1.0 via Content-Negotiation:
 
FireFox 1.0.6 -- MIME Type application/xhtml+xml:
http://web-sniffer.net/?url=http%3A%2F%2Fwww.jp29.org%2Findexbak.php&submit=Submit&http=1.1&gzip=yes&type=GET&ua=Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+5.1%3B+en-US%3B+rv%3A1.7.10%29+Gecko%2F20050716+Firefox%2F1.0.6+Web-Sniffer%2F1.0.21
 
MSIE 6.0 -- MIME Type text/html:
http://web-sniffer.net/?url=http%3A%2F%2Fwww.jp29.org%2Findexbak.php&submit=Submit&http=1.1&gzip=yes&type=GET&ua=Mozilla%2F4.0+%28compatible%3B+MSIE+6.0%3B+Windows+98%3B+Win+9x+4.90%3B+.NET+CLR+1.1.4322%29+Web-Sniffer%2F1.0.21
 
Netscape Navigator 4.08 -- MIME Type text/html:
http://web-sniffer.net/?url=http%3A%2F%2Fjp29.org%2Findexbak.php&submit=Submit&http=1.1&gzip=yes&type=GET&ua=Mozilla%2F4.08+%5Ben%5D+%28WinNT%3B+U+%3BNav%29+Web-Sniffer%2F1.0.21

Opera 8.02 -- MIME Type application/xhtml+xml:
http://web-sniffer.net/?url=http%3A%2F%2Fjp29.org%2Findexbak.php&submit=Submit&http=1.1&gzip=yes&type=GET&ua=Opera%2F8.02+%28Windows+NT+5.1%3B+U%3B+en%29+Web-Sniffer%2F1.0.21

-- 
James Pickering
http://www.jp29.org/
Content Negotiation test

Received on Tuesday, 23 August 2005 12:59:47 UTC