At 10:08 AM 8/21/96 -0500, Mike Alleman wrote:
>I know this was probably already answered, but I am working on
>installing majorcool. When I run it through the web server,
>it never returns anything.
>
>When I run it stand alone it hangs until I hit CTL-D and then
>I get the contents of a web page. Does anyone know what
>could be the cause?
I can answer for running standalone: it is a POST-style CGI and thus reads
STDIN until EOF for any variables to be passed. When you hit ^D, STDIN is
closed and you should get the Web page that is the opening screen.
Not sure about the Web side. What kind of server are you using? Ours is NCSA
and it has worked across several versions. For other servers, I suspect that
I need to add a CONTENT_LENGTH check to be more "correct". In &init_args(),
change:
while (<>) {
foreach (split(/&/)) {
to:
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
foreach (split(/&/, $buffer)) {
and see what that does.
--bill
|
|