<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>232</bug_id>
          
          <creation_ts>2003-06-22 06:53:49 +0000</creation_ts>
          <short_desc>Forward accept-language headers</short_desc>
          <delta_ts>2005-08-29 12:32:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>Other</component>
          <version>CSS Validator</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>REMIND</resolution>
          
          
          <bug_file_loc>http://www.stud.ntnu.no/~engmark/test/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Usability</keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Victor">engmark-w3c</reporter>
          <assigned_to name="Philippe Le Hegaret">plh</assigned_to>
          <cc>open</cc>
    
    <cc>r_arigur</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>549</commentid>
    <comment_count>0</comment_count>
    <who name="Victor">engmark-w3c</who>
    <bug_when>2003-06-22 06:53:49 +0000</bug_when>
    <thetext>When clicking the CSS validation button at
http://www.stud.ntnu.no/~engmark/test/ or
http://www.stud.ntnu.no/~engmark/test/index.php, I get the following error:

I/O Error: [http://www.stud.ntnu.no/~engmark/test/ or
http://www.stud.ntnu.no/~engmark/test/index.php]: Not Acceptable

The validator doesn&apos;t understand that the real file is
http://www.stud.ntnu.no/~engmark/test/index.php.no, but using the XHTML referer
page doesn&apos;t produce an error message. So it seems they check different URIs.

You should use the same algorithm in fetching the correct file for both validators.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>555</commentid>
    <comment_count>1</comment_count>
    <who name="Ran Ari-Gur">r_arigur</who>
    <bug_when>2003-06-23 16:43:39 +0000</bug_when>
    <thetext>You seem to have taken this resource offline (I now receive an HTTP 404), so I 
can&apos;t say anything for sure; but it strikes me as unlikely that the HTML 
validator knows to append .no to the URL. More likely, the HTML validator 
accepts the right content-type while the CSS validator does not.

What was the resource&apos;s stated content-type?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>638</commentid>
    <comment_count>2</comment_count>
    <who name="Bob Gregg">rgregg</who>
    <bug_when>2003-07-14 15:52:35 +0000</bug_when>
    <thetext>I have seen identical behavior.  Below is the relevant website:

http://www.bobandsonnet.com/

This URL validates just fine.  However, the following URL:

http://www.bobandsonnet.com/index

gives the &quot;Not Acceptable&quot; message from the CSS validator, even though it is 
serving up exactly the same resource.  As near as I can tell, this resource is 
being served up as &quot;text/html&quot;.  In fact, none of the links on this site 
validate, except for the main page, and then only if you go to the root without 
specifying &quot;index&quot;.

In all cases, these pages pass the XHTML validator (including both links for 
the root page) with no errors.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>807</commentid>
    <comment_count>3</comment_count>
    <who name="Ran Ari-Gur">r_arigur</who>
    <bug_when>2003-10-16 12:06:52 +0000</bug_when>
    <thetext>Re: Comment 2: The problem is with your website. When requesting 
URL &quot;http://www.bobandsonnet.com/index&quot;, the response is 406 Not Acceptable 
unless the outgoing Accept header included */*, application/*, or 
application/x-httpd-php. (This is bad behavior, since the actual returned 
Content-Type header is text/html, not application/x-httpd-php.)

You should configure your webserver such that it returns 200 OK when the 
outgoing Accept header includes text/* or text/html.


Personally, I think this bug could legitimately be resolved INVALID, since the 
bad behavior is actually the webservers&apos;. It could easily be &quot;fixed,&quot; however, 
by having the CSS Validator send a different Accept header (perhaps simply 
*/*), since the validator already must look at the returned Content-Type 
header to distinguish text/css from text/html, etc.

Alternatively, in the interest of Web Standards Evangelism (or whatever it&apos;s 
called), perhaps simply return a more informative error message? It could 
state what Accept header the validator sent, state that the validator received 
the HTTP error response &quot;406 Not Acceptable&quot;, and explain when/why this is bad 
behavior.

I think the Markup Validator and CSS Validator should be consistent with each 
other, however; if the CSS Validator sends a list of specific accepted content-
types, then the Markup Validator shouldn&apos;t just send */*.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>809</commentid>
    <comment_count>4</comment_count>
    <who name="Ran Ari-Gur">r_arigur</who>
    <bug_when>2003-10-16 12:12:48 +0000</bug_when>
    <thetext>*** Bug 351 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>813</commentid>
    <comment_count>5</comment_count>
    <who name="Brett Hamilton">open</who>
    <bug_when>2003-10-16 22:27:20 +0000</bug_when>
    <thetext>Thanks for looking into this and my duplicate issue (bug 351).

Yes, please have the CSS validator return a more detailed error message,
and an explanation of exactly what headers the CSS validator
sends to the web server in this situation.
That would aid in debugging and save a lot of time.

I believe that the HTML and CSS validators should agree,
and that once a page passes HTML validation, the CSS validator
should not have any issues with the page&apos;s HTTP.

Thanks, 
Brett Hamilton</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2466</commentid>
    <comment_count>6</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2004-10-06 01:39:55 +0000</bug_when>
    <thetext>Instead of tweaking the error message for 406, what would actually be useful in getting the css 
validator consistent with the markup validator would be to forward the Accept-Language headers sent 
by the client, or at the very least give access to the multiple choices rather than the ultimate 406.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2471</commentid>
    <comment_count>7</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2004-10-06 02:23:00 +0000</bug_when>
    <thetext>Olivier, the CSS Validator forwards the Accept-Language header of the client, 
the Markup Validator does not, see http://www.websitedev.de/css/validator-
faq#not-acceptable -- if the Markup Validator would copy the Accept-Language 
header aswell it would have the same problem as far as languages are concerned. 
I think I&apos;ve filed a feature request to add &apos;*&apos; to the Acctept-Language header 
to ensure that 406 would not come up due to this header.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5558</commentid>
    <comment_count>8</comment_count>
    <who name="Yves Lafon">ylafon</who>
    <bug_when>2005-08-29 12:32:23 +0000</bug_when>
    <thetext>The source of 406 is not only due to the accept language, but also the Accept:
header. The CSS validator sends only the type it can handle. If it was more
relaxed, there would be an error later anyway...
The CSS Validator now adds &quot;*&quot; in the Content-Language header (rfe from Bjoern)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>