Re: HTTP_ACCEPT

Anders Widman wrote:
> 
>   Hello,
> 
>   It  would  be  good  if the validator sent a HTTP_ACCEPT header when
>   validating webpages.
> 
>   I  am  testing  for  the  presence  of application/xhtml+xml in that
>   header  and  sends  my page as such if present. This is so I can use
>   older code for older browsers.
> 
Hi Anders,

I agree that it would be the correct thing to do for the validator to 
send a HTTP_ACCEPT header when validating pages.

I too have recently been writing code which tests for 
"application/xhtml+xml" (using PHP), in the end choosing to create a 
special case for the validator so that it would be sent XHTML rather 
than HTML.  The results of my code are at 
http://www.workingwith.me.uk/articles/scripting/mimetypes/ - you might 
find the code useful.

Neil Crosby
http://www.workingwith.me.uk/
---
[This E-mail scanned for viruses by Declude Virus]

Received on Friday, 21 May 2004 10:34:48 UTC