W3C home > Mailing lists > Public > www-validator@w3.org > December 2008

Re: HTML Validator HTTP Accept

From: Aristotelis Mikropoulos <amikrop@gmail.com>
Date: Fri, 12 Dec 2008 02:18:43 +0200
Message-ID: <47ceec760812111618w4df5f403v2d208a35a86a76f8@mail.gmail.com>
To: "David Dorward" <david@dorward.me.uk>
Cc: www-validator@w3.org
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
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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:57 UTC