It seems like from the Apache error log, that it (script.exp) is not
printing the correct Content-type header (text/html). Could this be because
it is in a binary format?
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/perlprint "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> [...]
