Hi, Using SSI and CGI together in Tomcat is something I haven't actually tried. But I would nonetheless recommend trying a later Tomcat version: 5.5.4 or 5.0.28 at least. The reason for this recommendation is that should you fine a bug in these versions, it's likely to get fixed, whereas if you find a bug in Tomcat 4.x it's not as likely (and if a fix is applied, it certainly won't be as timely as for 5.x).
Yoav Shapira http://www.yoavshapira.com >-----Original Message----- >From: Brian Hill [mailto:[EMAIL PROTECTED] >Sent: Friday, December 03, 2004 1:16 PM >To: [EMAIL PROTECTED] >Cc: Tony Choi >Subject: 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: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]