Hey,
I'm trying to figure out how to remove the extra "Content-Type: text/html; charset=ISO-8859-1 " header that is being printed out.
I have a script that calls another script that does the form validation.
This is not the exact coding, but I think its enough to show where my problem lies.
#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
}
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.
However it does use certain modules that I think that's where my extra header is being printed.
#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;
Is there anyway I can bypass this and remove the extra header?? I tried using the CGI feature unique header on top of my bp_form.pl script, but had no luck.
Thank you,
Anthony
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.