[Xitami] Xitami, ActivePerl CGI Scripts Not Working

Peter van der Goes xitami@lists.xitami.org
Sun, 22 Sep 2002 09:30:52 -0500


Wow! I have no idea how all the 3D's got in there. Here's from my original
post:
Any ideas what caused the strange alterations?

Begin:
#!F:\Perl\bin\perl.exe -wT

print "Content-type:text/html\n\n";
print "Show me the money! The Active PERL interpreter is working with my web
server!";

the printed content shows up in my browser, leading me to believe that Perl
is working. However, when I try to use a HTML page like:

<html>
<head>
 <title>Animal</title>
</head>
<body>
<form action="animal.cgi" METHOD=POST>
Which animal? <INPUT type="text" name="animal">
<P><INPUT type="submit">
</form>
</body>
</html>

to pass a string to a CGI script like:

#!F:\Perl\bin\perl.exe -wT
use strict;
use CGI ':standard';

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

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

the result is a blank page.
When I view->source for the blank page, I get:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

End:

----- Original Message -----
From: "Patricko" <polson1@adelphia.net>
To: <xitami@lists.xitami.org>
Sent: Sunday, September 22, 2002 8:45 AM
Subject: Re: [Xitami] Xitami, ActivePerl CGI Scripts Not Working


> This is what is showing in the Xitmai archives
>
> <html>
> <head>
>  <title>Animal</title>
> </head>
> <body>
> <form action=3D"animal.cgi" METHOD=3DPOST>
> Which animal? <INPUT type=3D"text" name=3D"animal">
> <P><INPUT type=3D"submit">
> </form>
> </body>
> </html>
> <form action=3D"animal.cgi" METHOD=3DPOST>
> changed this line to
> <form action="/cgi-bin/animal.cgi" METHOD=POST>
> and it worked
> Although I see you posted in HTML not good here on the list :)
>
> ----- Original Message -----
> From: "Peter van der Goes" <pvdg@worldnet.att.net>
> To: <xitami@lists.xitami.org>
> Sent: Sunday, September 22, 2002 6:24 AM
> Subject: Re: [Xitami] Xitami, ActivePerl CGI Scripts Not Working
>
>
> > Please tell me what 3D stuff you are referring to?
> >
> > ----- Original Message -----
> > From: "Patricko" <polson1@adelphia.net>
> > To: <xitami@lists.xitami.org>
> > Sent: Saturday, September 21, 2002 7:31 PM
> > Subject: Re: [Xitami] Xitami, ActivePerl CGI Scripts Not Working
> >
> >
> > > what's with the 3D stuff never seen that before
> > > place your .pl files in the CGI-BIN directory
> > > after removing all the 3D stuff it worked like it should
> > >
> > > hummm
> > >
> > > ----- Original Message -----
> > > From: "Peter van der Goes" <pvdg@worldnet.att.net>
> > > To: <xitami@lists.xitami.org>
> > > Sent: Saturday, September 21, 2002 4:31 PM
> > > Subject: [Xitami] Xitami, ActivePerl CGI Scripts Not Working
> > >
> > >
> > > This is a follow-up to my previous post requesting help with the
subject
> > > combination. In the first post, I listed the content of a simple web
> page
> > > passing a short string to a simple CGI script. I very probably should
> have
> > > stated this the first time around, but the page and script work fine
if
> > the
> > > script is served from the web server provided by the author of the
book
> > > where these beginner examples are published. So, I don't believe the
> > script
> > > itself is the problem.
> > > I have tried some suggestions offered by helpful people with the
> following
> > > results:
> > >
> > > "Put the complete URL of the Web Server being asked to serve the CGI
in
> > the
> > > action line of the web page."
> > > Works correctly if I use the book author's URL, still fails when I try
> to
> > > use my local Xitami installation (get a blank page)
> > >
> > > "Active Perl only interprets .pl files, not .cgi."
> > > Changed the extension of animal.cgi to animal.pl. No difference noted.
> > Still
> > > get a blank page. If I change the extension on the simple,
> self-contained
> > > script that *will* run, it runs equally well with either .cgi or .pl
as
> > the
> > > extension.
> > >
> > > "Study the Xitami ducumentation for settings that might accect your
> > > situation."
> > > I've looked at the documentation for both Xitami and ActivePerl, and
> > > (probably because I very inexperienced) don't see anything that looks
> like
> > a
> > > possible solution. ActivePerl *claims* to automatically configure
Xitami
> > > during installation, but I suspect the configuration is not quite
> > complete.
> > >
> > > Other symptoms noted:
> > > Sometimes, after a failed attempt to call a CGI from a web page, the
> > Xitami
> > > icon in my system tray has changed from green to yellow. On other
> > occasions,
> > > the icon is still green after a failed attempt, but Xitami has
"stopped
> > > responding".
> > > Other things tried:
> > > I have syntax checked the offending scripts in Perl and no errors are
> > > reported.
> > >
> > > I'm probably not describing all this very well, so if there is other
> > > specific information needed for further analysis, please tell me and
> I'll
> > > try to get it.
> > >
> > > Any suggestions much appreciated!
> > >
> > >
> > > **********************************************************************
> > > **  All opinions are mine alone.Do not attribute elsewhere!
> > > **********************************************************************
> > > ** Peter van der Goes, Professor, Computers & Information Technology
> > > **                                        Rose State College
> > > ***********************  Contact  ************************************
> > > ** Office e-mail:  pvan@rose.edu
> > > ** Home   e-mail:  pvdg@.att.net
> > > ** Web Page:  http://www.rose.edu/Faculty/pvan/index.htm
> > > **********************************************************************
> > >
> > >
> > >
> > > --
> > > Xitami Users Mailing List -- For Xitami support
> > > To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
> >
> >
> > --
> > Xitami Users Mailing List -- For Xitami support
> > To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>