W3C home > Mailing lists > Public > www-validator-css@w3.org > July 2003

Re: Validator Rejects Valid URI

From: Ben Jansen <bmerlin@mac.com>
Date: 25 Jul 2003 11:26:04 -0400
Cc: www-validator-css@w3.org, Bjoern Hoehrmann <derhoermi@gmx.net>
To: Christoph Schneegans <Christoph@Schneegans.de>
Message-Id: <61224FB2-AF44-11D7-8A8B-000A27AE1FBE@mac.com>




On Friday, July 4, 2003, at 02:31 AM, Christoph Schneegans wrote:

> Bjoern Hoehrmann wrote:
>
>> The CSS Validator sends an Accept header like
>>
>>   Accept: text/css, text/html, text/xml, application/xhtml+xml,
>>     application/xml, image/svg+xml, */*;q=0
>>
>> Your server responds with
>>
>>   HTTP/1.1 406 Not Acceptable
>>   (...)
>>
>> to such requests. I am not sure what causes this behaivour, (...)
>
> Requesting <http://w007.org/kristin> with
>
>   Accept: application/x-httpd-php
>
> returns "200 OK", so this behaviour is probably due to a directive
>
>   AddType application/x-httpd-php .php
>
> which should read
>
>   AddType text/html .php
>
> to support content negotiation. PHP should be enabled by using an
> AddHandler directive instead.

Thanks for the information! I'm surprised the PHP folks say to use 
AddType -- I couldn't even find information on php.net for using 
AddHandler instead, except for the CGI version.

I changed the directives and now the CSS validator accepts the response 
given. Thanks again!

- Ben
Received on Friday, 25 July 2003 11:26:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:12 GMT