perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Gormley <cl...@traveljury.com >
Subject RE: Malformed header from script
Date Mon, 16 Apr 2007 10:32:06 GMT
On Mon, 2007-04-16 at 11:12 +0100, michael watson (IAH-C) wrote:
> That does indeed make the HTML headers come through, however, I get
> about 20 "Content-type: text/html" lines in my web page because that
> print function is used to print out ALL HTML, not just the headers.

Then just print the header before you do any other printing.

> 
> httpd.conf has:
> 
> $Location{"/perl"}={
>   SetHandler      =>  'perl-script',
>   PerlHandler     =>  'ModPerl::Registry',
> #  Options         =>  '+ExecCGI',
>   allow           =>  'from all',
>   PerlSendHeader  =>  'On',
> };

Also, PerlSendHeader is a mod_perl 1 config option, which has been
replaced by 'PerlOptions ParseHeader'

Take a look here for the docs on configuring mod_perl 2
http://perl.apache.org/docs/2.0/user/config/config.html

Clint



Mime
View raw message