467,104 Members | 1,026 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,104 developers. It's quick & easy.

malformed header from script

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
  • viewed: 1947
Share:
4 Replies
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 2GB
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
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 2GB
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.

Similar topics

10 posts views Thread by Margaret MacDonald | last post: by
1 post views Thread by Kiran B. | last post: by
8 posts views Thread by Magnus Lie Hetland | last post: by
1 post views Thread by lawrence | last post: by
6 posts views Thread by Jason Collins | last post: by
8 posts views Thread by madevo8 | last post: by
4 posts views Thread by Call Me Tom | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.