[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Malformed header on CGI Perl script



Hi,

Make sure your header is in fact correct.  In the header you typed in this
email the semi colon appears to be in the wrong spot.  Ensure the line
reads:

print "Content-Type:text/html\n\n";

Andrew

----- Original Message -----
From: "propheci" <propheci@xxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Saturday, January 12, 2002 8:23 AM
Subject: [cobalt-users] Malformed header on CGI Perl script


> hi,
>
> having some trouble getting my perl script to work.  it works fine in
console
> with "perl blah.cgi".  but when i try it in a browser, it gives me an
> internal server error.
>
> upon further investigation, i see the following line in my error log:
>
> malformed header from script. Bad header=BEGIN failed--compilation abor:
> /usr/cgiwrap/cgiwrap.
>
> i checked the common things like making sure i have the print
"Content-type:
> text/html;\n\n" and the #!/usr/bin/perl.  the error also occurs only on my
> MySQL/DBI related scripts.
>
> thank you,
> xiaolei
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>