[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Perl 'die' function?
- Subject: Re: [cobalt-users] Perl 'die' function?
- From: Humberto Diógenes <adm.humberto@xxxxxxxxxxx>
- Date: Wed Jun 14 01:36:51 2000
Remember that 'die' function prints to STDERR, so the string "Content-type:
text/html\n\n" will be printed to server's error_log.
Better 'print' the error message (with Content-type) and 'exit'.
------------ Original Message --------------
Date: Tue, 13 Jun 2000 15:01:16 -0700
Subject: Re: [cobalt-users] Perl 'die' function?
From: Kris Dahl <krislists@xxxxxxxxxxxxx>
The reason it is giving you the internal server error is because the script
is printing without declaring the content-type. It could be any number of
things that cause it--including not finding PERL or whatever.
(...)
Because it doesn't have the content type header like the before mentioned
"Content-type: text/html\n\n" the web server chokes on it.
(...)
On the die command, have it print the "Content-type: text/html\n\n"
before the error screen and it will print the error in the web browser.
Atenciosamente,
Humberto Diógenes
adm.humberto@xxxxxxxxxxx
______________________________
Internet é Diginet
http://www.digi.com.br