Jump to content

application/xhtml+xml


Darkness Soul

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/157271-applicationxhtmlxml/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/157271-applicationxhtmlxml/#findComment-828857
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.