Results 1 to 2 of 2
  1. #1
    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
    Pl help

    Thanks in advance
    Nish

  2. #2
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •