At 12:41 PM -0400 10/22/98, David R. Barstis wrote:
>I've got htdig-3.1.0b1 installed on a server running Apache 1.3.3/Solaris
>2.5.1. The db is created and I can run htsearch as a standalone program
>with everything working. The problem occurs when I try using the search
>form. I get an Internal Server Error blah, blah, blah Premature end of
>script headers.
What does your server error file say? Usually the server log is pretty
specific about what the "premature end of script headers" means. Often this
includes some output, either from stderr or stdout.
>As a standalone, I get prompted to enter a value for words and a format.
>My question is whats preventing the program from trying to prompt for the
>values when executed as a cgi? Is there a config file value I need to
>enter somewhere?
In a CGI environment, certain variables are set that won't be set from the
command line. While I don't know which ones htsearch uses, the variables
HTTP_* are usualy good ones to examine. :-)
In short, the CGI will know it's not being called from the command line and
will not try to prompt for values.
-Geoff Hutchison
Williams Students Online
http://wso.williams.edu/
----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the body of the message.