Forum: Ruby I need some help with browser output in ruby cgi - cgi.rb

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5809830297f1bef21677c3fd616b5906?d=identicon&s=25 Professor Chen (Guest)
on 2006-02-06 08:13
(Received via mailing list)
Whenever I try to send out some output in CGI my scripts generates an
error 500 with
-
Error message:
malformed header from script. Bad header=.: dblist.cgi
-

I am not really sure how to output text with the cgi.pre,
CGI::escapeHTML functions etc. Is there some guide to doing those
things right?

PS. Is there some way I can the cgi to send the actual ruby error
messages as part of the error 500 output?
This topic is locked and can not be replied to.