You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Brian Hill <br...@speakeasy.net> on 2004/12/03 19:16:25 UTC

lose query args when using cgi and ssi together

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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org