We have set up Tomcat to process an SSI directive that is used in many pages on our site (www.pesticideinfo.org):

<!--#include virtual="/cgi-bin/myscript.pl?myqueryargs" -->

myscript.pl gets executed, but $ENV{"QUERY_STRING"} is defined but empty (and other things that I would have thought might be defined such as REQUEST_URI are not defined at all).

I consider this a bug, although maybe SSI and CGI weren't meant to be used together this way. The exact same code worked when we had Apache processing the SSI directive instead of Tomcat.

Can anyone suggest a workaround? Maybe some escaping trick that causes the queryargs to get passed through? Is this fixed in some more recent version of Tomcat (we are using Tomcat 4.1.18 (?) on Mac OS X 10.2)?

Thank you for any suggestions!

--Brian

P.S.   I have tried the other relevant SSI directive

<!--#exec cgi="/cgi-bin/myscript.pl?queryargs" -->

and get the same result.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to