W3C home > Mailing lists > Public > www-validator-css@w3.org > August 2005

Invoking jigsaw.w3.org in a .htaccess-protected Directory

From: Bob Smith <bsmith@sudleyplace.com>
Date: Tue, 02 Aug 2005 19:36:50 -0400
Message-ID: <42F00392.3050803@sudleyplace.com>
To: www-validator-css@w3.org

I would like to define a file which I can invoke via SSI

<!-- #include virtual="..." -->

from within various HTML pages to validate the CSS on that page.  For most 
pages, the following href works:

http://jigsaw.w3.org/css-validator/check/referer

However, this approach fails when used on a page in a directory protected by a 
..htaccess file.   In particular, when the above href is invoked, the validator 
displays:

I/O Error: Basic realm="Administrative Use Only"

where the text in quotes is the AuthName text in the .htaccess file.

Q.  Is there a way I can define an href="" to solve this problem without 
explicitly naming the file to validate?

I know about

http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3A//...

but that requires naming the page to be validated which defeats the goal of 
using a common include file across many pages.

Note that this href

http://validator.w3.org/check?uri=referer

works well for HTML validation in both contexts (with and without .htaccess 
protection).  That is, in a .htaccess context, it prompts for a username and 
password and then validates the HTML content in the file.  A similar statement 
for CSS validation

http://jigsaw.w3.org/css-validator/check?uri=referer

fails as does

http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=referer

-- 
_______________________________________________________________
Bob Smith - bsmith@sudleyplace.com - http://www.sudleyplace.com
a.k.a.      bsmith@qualitas.com    - http://www.qualitas.com
Received on Wednesday, 3 August 2005 06:16:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:00:54 UTC