Re: Incomprehensible CGI error
Dave Neuer <smoothie@spiritone.com> wrote:
: I am trying to get a CGI script written in Perl running, and I keep
: getting a wierd error that I don't understand:
:
: "access to /usr/lib/cgi-bin/testscript.pl failed for *machine name*,
: reason: Premature end of script headers"
:
: Anyone know what this means? Other Perl scripts with similar
: construction seem to be working OK, can't seem to pin this one down.
Sure, you are not sending the Content-type header before sending your
data. Try putting this before you send any data:
print("Content-type: text/html\n\n");
This should solve your problem.
E.-
--
Eloy A. Paris
Information Technology Department
Rockwell Automation de Venezuela
Telephone: +58-2-9432311 Fax: +58-2-9431645
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: