I think I don't do that. In PHP, $_SERVER['HTTP_ACCEPT'] includes only MIME Types the browser accepts, and not the ones the browser does not. Anyway, regarding the link you gave me about the protocol specification, I don't know how to use these qvalues in PHP. I don't know what headers should I send or check for. On Thu, Dec 11, 2008 at 10:49 PM, David Dorward <david@dorward.me.uk> wrote: > Aristotelis Mikropoulos wrote: > > I think that checking the HTTP Accept the web browser sends, is more > > than enough for content negotiation. > > It is - but when the user agent says "I do not accept > application/xhtml+xml" you shouldn't parse that as > "application/xhtml+xml was mentioned, I shall send that". > > -- > David Dorward <http://dorward.me.uk/> > -- Programs must be written for people to read, and only incidentally for machines to execute.Received on Friday, 12 December 2008 00:19:18 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 1 October 2009 14:49:11 GMT