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

[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