Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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
Replies are listed 'Best First'.
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 contemplating the Monastery: (13)
As of 2015-07-31 17:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls