W3C home > Mailing lists > Public > www-jigsaw@w3.org > September to October 1996

REMOTE_HOST variable in CgiResource

From: Anselm Baird-Smith <abaird@w3.org>
Date: Fri, 6 Sep 1996 16:07:09 +0500
Message-Id: <9609062007.AA15486@www18.w3.org>
To: "steve nunez" <Steve=Nunez%CS%Contractors@bangate.compaq.com>
Cc: <www-jigsaw@w3.org>
steve nunez writes:
 > Hello all,
 > 	I've just started using jigsaw, and I'm trying to use some legacy cgi 
 > applications until I can rewrite them in Java. One in particular requires 
 > the REMOTE_HOST environment variable to be set. I noticed  that this did 
 > not appear to be the case, and while looking through the src, found the 
 > offending line:
 > CgiResource.java, line 240:
 > //	addEnv ("REMOTE_HOST", , env) ;
 > Does anyone know why this would be commented out? Does anyone know if the 
 > following line, which is similar the other code, might work to accomplish 
 > what I want?
 > 	addEnv ("REMOTE_HOST", request.getClient().getHostName(), env) ;
 > I need to find a way to set this variable (on Win95, if it matters) in 
 > order to use Jigsaw (which I really want to do)

I think your code should work. The reason it's commented out is that
this requires DNS access, which might slow down things, even though
that infos might not be needed. This will be a config parameter of
CgiResource in next release.

Received on Friday, 6 September 1996 16:07:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:30 UTC