W3C home > Mailing lists > Public > www-validator@w3.org > October 2004

Re: Local validator via proxy

From: Ville Skyttä <ville.skytta@iki.fi>
Date: Sat, 16 Oct 2004 23:33:08 +0300
To: Francesco Siviero ARPA-SIM <fsiviero@smr.arpa.emr.it>
Cc: www-validator@w3.org
Message-Id: <1097958788.13803.29.camel@bobcat.mine.nu>

On Wed, 2004-10-13 at 17:22, Francesco Siviero ARPA-SIM wrote:
> Sorry to disturb.

No problem :)

> I've installed a local valdator in my debian env, and it's woking fine, 
> but since we installed a proxy I'm not able anymore to get validation of 
> pages outside of my lan. Is there any way for authenticating on the proxy?

I'm afraid not without modifying the "check" script a bit, and defining
a few variables in your web server configuration.   But fear not, it
shouldn't be that hard (this is 100% untested, by the way :):

First, locate the line

   my $ua = new LWP::UserAgent;

...in the check script.  Add the following line after that:


Then, add your proxy settings as environment variables to your web
server config (somewhere so that they apply to the "check" script), for
example for Apache that would be like:

   SetEnv http_proxy http://username:password@your-proxy-host:port/

...and restart the web server, and it (c|sh)ould work.  Add no_proxy and
others if you need them, see the libwww-perl docs for more info:

The above affects most of the network operations of the validator, but
its SGML/XML parser, OpenSP, may in some cases access the network eg.
when fetching DTDs.  I'm afraid OpenSP does not have any support for
proxies, but it might not matter in your case, depending on what you'll
be validating with it.

I'll add the env_proxy() line to CVS so it'll be included in the next
version of the validator.  In case you use the Link Checker, it already
has that included.
Received on Saturday, 16 October 2004 20:33:11 UTC

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