perleager has asked for the wisdom of the Perl Monks concerning the following question:
Basically, since the extra header prints from the bp_form routine, I'm assuming the extra header is being printed in the BusinessFormValidation.pm. The problem I'm having is I can't find the line anywhere in BusinessFormValidation.pm that prints the extra header.#BP_FORM.pl use strict; use CGI; my $INPUT = new CGI; if ($INPUT->param('action') eq "bp_form") { &bp_form; } sub bp_form { &bp_header; use BusinessFormValidation; my $webapp = BusinessFormValidation->new(); $webapp->run(); &bp_footer; } sub bp_header { print <<EOF; This is the header, below the header will view the extra "Content-Type +: text/html; charset=ISO-8859-1" EOF } sub bp_footer { print <<EOF; This leads me to think that the extra header is coming from calling th +e "$webapp->run();" part of the form validation script. EOF }
#top of BusinessFormValidation.pm package BusinessFormValidation; use base CGI::Application; use CGI::Application::ValidateRM; use Data::FormValidator; use CGI; $CGI::DISABLE_UPLOADS = 0; $CGI::POST_MAX = 1_751_120; #1.67mb my $w = new CGI;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: An extra content-type header
by fireartist (Chaplain) on Apr 22, 2004 at 13:58 UTC | |
|
Re: An extra content-type header
by sgifford (Prior) on Apr 22, 2004 at 16:03 UTC | |
|
Re: An extra content-type header
by bmann (Priest) on Apr 22, 2004 at 17:27 UTC |