Author: T.Markowitz (24 Feb 05 1:21pm)
I'm trying to install the perl version of HP as a CGI script under a vanilla Jakarta Tomcat 5.0 server with CGI enabled. My Tomcat installation does not run a separate Apache web service, but uses its own embedded web server to handle HTTP requests. Unfortunately, the auto-generated 'useangry.cgi' script refers to an environment variable, "SCRIPT_FILENAME" which Tomcat doesn't set. Rather Tomcat uses "X_TOMCAT_SCRIPT_PATH" for this variable (see the offending line from the perl script below). This causes the script to fail at line 314 (the call to file_get_contents). Obviously, I can't change the perl source myself without messing up the hash digest for the code. Can someone on the development team create a separate perl Tomcat standalone-version that I can install?
Thanks.
--ted
$postvars{"tag4"} = md5_hex(&file_get_contents(&basename($ENV{"SCRIPT_FILENAME"})));
|