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
Share on other sites

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.

Link to comment
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.