From: Mark Probert Date: 2002-11-09T02:02:40+09:00 Subject: Basic CGI question Hi, Rubyists. I'm just starting to play with cgi and forms. I have a simple script which runs okay, except that the page changes to 500: Internal Server Error, with the error message "Premature end of script headers" on the script. Search, this seems to be a permissioning problem. Permissions are 755. Ideas? Ruby 1.7.3 (mswin), Apache 2.0.43, Win2k. > cat lform.rb require 'cgi' require 'log4r' # add some basic logging # logger = Log4r::Logger.new('lform') Log4r::FileOutputter.new('logfile', :filename=>'logs/lform.log', :trunc=>true, :level=>Log4r::DEBUG) logger.add('logfile') # cgi # cgi = CGI.new cgi.params.each { |key, val| logger.debug "key=#{key} val=#{val}" } -mark.