Results 1 to 2 of 2
Thread: malformed header from script??
-
01-11-2005, 03:59 PM #1WHT Addict
- Join Date
- Sep 2002
- Posts
- 134
malformed header from script??
Hi,
I have been trying to integarate my client's website with an application through a Perl file.
The file works perfectly when executed from SSH. and when i try to execute from the web it throws a error like...
malformed header from script. Bad header=Error occurred during initiali: /home/demo/public_html/cgi-bin/test.pl
Thanks in advance
Nish
-
01-11-2005, 08:33 PM #2Junior Guru Wannabe
- Join Date
- Apr 2003
- Location
- Sunny UK
- Posts
- 33
You'll need:
print "Content-type: text/html\n\n";
before any output when running your script from the web or you'll get a 500 and a malformed header error in your log like above.
That line won't affect your scripts running via ssh - you'll just get that line literally printed before your output.
If that's not the problem, it would be worth you posting your code so people can help.