On Oct 1, 2004, at 10:14 PM, Markus Wichitill wrote:
Sam Wilkins wrote:#!/usr/bin/perl -w
use strict;
print "Content-type: text/html\r\n\r\n";
print "It worked!!!\n";
No matter what I run, even that, I get document contains no data. It works from the command line. If it helps, I'm on Mac OS X 10.3.5, Apache 1.3.29, and I don't know how to determine my mod_perl version.
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader Off
allow from all
</Location>
If you don't send full HTTP headers yourself, you need to set "PerlSendHeader On" to make Apache parse and complete the headers.
Actually, I tried it with it on before, and I just turned it on now, and no luck.
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html