Forum Moderators: phranque
I know that browsers can somehow talk to the server and announce what mimetypes they support...so how would I be able to for testing purposes on my local apache box send browsers with application/xhtml+xml support to xhtml.php and browsers that only support text/html to html.php? Remember that the default is the first mimetype (I'm serving XHTML 1.1) and I am creating a greylist of sorts of UAs that will have to be served text/html. I suppose this should be done when a certain file is requested, how about "mimetest.php" requests will redirect with this test?
This will help me clarify some things much better (by having a visual of the filename that Apache redirects me to on my system). If a browser will render (even badly) a page that is served as application/xhtml+xml then apparently Opera 3.62 supports application/xhtml+xml but in this instance I'd like to confirm it (as one of my more extreme examples, heh).
<?php $mime = $HTTP_SERVER_VARS['HTTP_ACCEPT']; print $mime;?>
Yeah...well I just wanted to see what would vocally say, "yes, I support that". In example Opera 5+ will support application/xhtml+xml however earlier versions do not declare support even for text/html adding yet more confusion.
So I will treat "quiet" browsers like "quiet" vendors. If it doesn't say the hard drive has 8mb of cache then I must assume it only has 2mb of cache.