Darkness Soul Posted May 7, 2009 Share Posted May 7, 2009 Hi, I'm not sure if this is the right area to place this question, but this is more html then php. I'm writing a script that check if the headers http_accept have application/xhtml+xml in it. If it have, check if it's Q is greater or equal to text/html Q. Well, the php script work's fine, at least in theory. I need to test it but, my server http_accept returns only */*. I tryed other webserver and it returned some image and documents then */*. Neither text/html or application/xhtml+xml. You guys know what shall I do? This */* mean that server accept text/html, but also accept application/xhtml+xml? Thanks in advance. D.Soul Quote Link to comment https://forums.phpfreaks.com/topic/157271-applicationxhtmlxml/ Share on other sites More sharing options...
Daniel0 Posted May 7, 2009 Share Posted May 7, 2009 You can choose for your self. However, */* is obviously rubbish. It would mean that e.g. asldkjasdlk/laksdjlkj is supported, but that doesn't even exist. By the way, it's not the server that returns it, but rather the client that claims it. Quote Link to comment https://forums.phpfreaks.com/topic/157271-applicationxhtmlxml/#findComment-828850 Share on other sites More sharing options...
Darkness Soul Posted May 7, 2009 Author Share Posted May 7, 2009 By the way, it's not the server that returns it, but rather the client that claims it. Strange... I used the same broswer to open that, the print in both: Server 1: */* Server 2: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* This with the same script in the same browser. :S Quote Link to comment https://forums.phpfreaks.com/topic/157271-applicationxhtmlxml/#findComment-828857 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.