[Xitami] Re: ActivePerl & Xitami - CGI problems Continued (Follow-up on Log content)

Peter van der Goes xitami@lists.xitami.org
Sun, 22 Sep 2002 16:54:43 -0500


I'm afraid I threw you a red herring on the log content.
I cleared all log content, then restarted Xitami and accessed animal.html,
then called animal.cgi.
The log content:

cgierr.log - empty

access.log -
127.0.0.1 - - [22/Sep/2002:16:38:19 -0600] "GET / HTTP/1.1" 304 0 ""
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; AT&T CSM6.0; AT&T CSM7.0)"
127.0.0.1 - - [22/Sep/2002:16:38:33 -0600] "GET /animal.html HTTP/1.1" 304 0
"" "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; AT&T CSM6.0; AT&T
CSM7.0)"
127.0.0.1 - - [22/Sep/2002:16:38:47 -0600] "POST /cgi-bin/animal.cgi
HTTP/1.1" 200 0 "http://127.0.0.1/animal.html" ""

errors.log - empty

Resulting from displaying animal.html in my browser, then clicking on the
Submit button to call animal.cgi

> Show your complete HTML page that calls the script and fails (strip it
> down to the minimal failing code).

>From animal.html (in \xitami\webpages)
<body>
<form action="/cgi-bin/animal.cgi" METHOD=POST>
Which animal? <INPUT type="text" name="animal">
<P><INPUT type="submit">
</form>
</body>
>
> Show your entire minimal failing script.
>From animal.cgi (in \xitami\cgi-bin)
#!C:\perl\bin\perl.exe -w
use strict;
use CGI ':standard';

my $animal;
$animal = param('animal');

print "Content-type: text/html\n\n";
print "Show me the $animal";


I apologize for any confusion...