Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
go ahead... be a heretic
 
PerlMonks  

perl-script vs. cgi-script and malformed header from script. Bad header=</font> : bopper.mcgi

by Plankton (Priest)
on Dec 16, 2009 at 21:31 UTC ( #813085=perlquestion: print w/ replies, xml ) Need Help??
Plankton has asked for the wisdom of the Perl Monks concerning the following question:

Dear wise Monks

I have some very old mod_perl 1.0 code (perl 5.6.1) that runs under Apache 1.0 no problem. But when I run this code under mod_perl 2.0 I get this error:

malformed header from script. Bad header=</font> : bopper.mcgi
I can get the code to run if I change my httpd.conf Files directive so that it is cgi-script but I would like to have the improved performance of running in mod_perl with perl-script.

Is there something I need to do with the $cgi->header() calls or something?

Thanks

Comment on perl-script vs. cgi-script and malformed header from script. Bad header=</font> : bopper.mcgi
Select or Download Code
Re: perl-script vs. cgi-script and malformed header from script. Bad header=</font> : bopper.mcgi
by zwon (Monsignor) on Dec 16, 2009 at 22:02 UTC

    What is the version of CGI.pm? It should be at least 3.11. Also a little snippet to reproduce the problem would be helpfull.

Re: perl-script vs. cgi-script and malformed header from script. Bad header=</font> : bopper.mcgi
by desemondo (Hermit) on Dec 16, 2009 at 22:03 UTC
    You'll likely get more meaningful responses if you include a small snippit of code that produces the issue... otherwise any responses you get will be just speculative...
Re: perl-script vs. cgi-script and malformed header from script. Bad header=</font> : bopper.mcgi
by Anonymous Monk on Dec 17, 2009 at 03:58 UTC
    look for the source of the </font> tag, thats where your problem is
Re: perl-script vs. cgi-script and malformed header from script. Bad header=</font> : bopper.mcgi
by Plankton (Priest) on Dec 17, 2009 at 23:24 UTC
    I figure out what my problem was. I needed to remove the ...
    PerlOptions +ParseHeaders
    ... in my apache conf.
    <Files *.mcgi> SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOptions +GlobalRequest Options +ExecCGI Order allow,deny Allow from all </Files>

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://813085]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2014-04-20 19:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (487 votes), past polls