I tested this on my local machine which is Also running Windows XP, Apache
2.0.46, and Perl 5.8 and it worked.
However, it still did not work on Red Hat box.
----- Original Message -----
From: "Alan Stewart" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 03, 2004 3:45 PM
Subject: Re: PAR and Web applications
> On 3 Mar 2004 at 19:01, Xavier Noria wrote:
>
> > I get the same here (see transcript below). Permissions are OK.
> >
> > -- fxn
> >
> > [EMAIL PROTECTED]:~/tmp% cat foo.c
> > #include <stdio.h>
> >
> > int main(void) {
> > printf("Content-Type: text/plain\n\n");
> > printf("This is a test\n");
> > return 0;
> > }
> > [EMAIL PROTECTED]:~/tmp% gcc -o foo foo.c
> > [EMAIL PROTECTED]:~/tmp% cp foo /Library/WebServer/CGI-Executables
> > [EMAIL PROTECTED]:~/tmp% lwp-request http://localhost/cgi-bin/foo
> > This is a test
> > [EMAIL PROTECTED]:~/tmp% cat foo.pl
> > #!/usr/bin/perl
> >
> > print "Content-Type: text/plain\n\n";
> > print "Test script\n";
> > [EMAIL PROTECTED]:~/tmp% pp -o foo foo.pl
> > [EMAIL PROTECTED]:~/tmp% ./foo
> > Content-Type: text/plain
> >
> > Test script
> > [EMAIL PROTECTED]:~/tmp% cp foo /Library/WebServer/CGI-Executables
> > [EMAIL PROTECTED]:~/tmp% lwp-request http://localhost/cgi-bin/foo
> > <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> > <HTML><HEAD>
> > <TITLE>500 Internal Server Error</TITLE>
> > [...]
> >
>
> I tried this on WinXP with Apache 2.0.48 and ActivePerl 5.6.1, except:
>
> pp -o foo.exe foo.pl
> copy foo.exe c:\program files\apache group\apache2\cgi-bin
> lwp-request http://localhost/cgi-bin/foo.exe
>
> and it worked.
>
> I took the extension off of foo.exe, and this worked also:
>
> lwp-request http://localhost/cgi-bin/foo
>
> Alan Stewart
>
>