By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,777 Members | 1,755 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,777 IT Pros & Developers. It's quick & easy.

malformed header from script

P: 29
I am getting this error from server when I try to write a xml file on server using cgi script.

malformed header from script. Bad header=<file><record><Item name="N.bm:

Thanks
Jul 11 '08 #1
Share this Question
Share on Google+
4 Replies


P: 29
I am using CGI module to print header. like

print header();
print start_html(-title => "test", -script=>{-src=>$jsurl}),.....
Jul 11 '08 #2

KevinADC
Expert 2.5K+
P: 4,059
It could be there is a problem in the script before that section of your code. Add this to your program:

use CGI::Carp qw/fatalsToBrowser warningsToBrowser/;

see the CGI::Carp modules documentation for more details.
Jul 11 '08 #3

P: 29
Thanks for quick reply,


One thing I forgot to tell was that sometimes every thing runs fine and sometimes I get an error:--

malformed header from script. Bad header=<file><record><Item name="N.bm: c:/program files/apache group/apache/cgi-bin/folderbased.cgi


also using cgi::carp does not show some extra errors the errors are same.

Thanks.
Jul 12 '08 #4

KevinADC
Expert 2.5K+
P: 4,059
Sorry, I don't know what the problem is.
Jul 12 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.