[NTLUG:Discuss] apache/ssi question

MadHat madhat at unspecific.com
Fri Mar 24 07:42:07 CST 2000


David Camm wrote:
> 
> does anyone know
> 
> (a) why apache will not pass the HTTP_COOKIE environment variable to a
> cgi program executed via ssi e.g.

I am not aware of an environment variable called HTTP_COOKIE.  I can't
find it mentioned on apache's web site.  Where did you find the info you
have right now on it?  I would like to know more.  I seem to have
misplaced my apache book...  damn.

> 
> <!--#exec cgi="/cgi-bin/xxx.pl"-->
> 
> while it does pass it to a non-ssi program
> 
> and
> 
> (b) is there any way around this?
> 
> i have already tried <!--#exec cmd="/cgi-bin/xxx.pl $HTTP_COOKIE"--> and
> <!--#exec cgi="/cgi-bin/xxx.pl $HTTP_COOKIE"--> and neither works, nor
> did adding a 'PassEnv HTTP_COOKIE' into the webserver definition work
> either.

when calling a ENV from an SSI, to echo it you simply do a 
<!--#echo env="HTTP_REFERER"-->
I am not sure you can call it from inside a #exec like that.

> 
> sign me
> 
> frustrated in fort worth

-- 
%_=split';','2e;hac;40;not;64;ju;66; Perl ;68;st a;6f;ker;75;her';
print map $_{unpack "H2",$_}, split //,
'madhat at unspecific.com'
# aka Lee Heath, but don't tell anyone.




More information about the Discuss mailing list