#!/usr/bin/env ruby
require 'cgi'
cgi = CGI::new( "html3" )
cgi.out(){
  html = "<html><head><title>simple.cgi</title></head><body>"
  html << "<b>" + CGI::escapeHTML( ENV['QUERY_STRING'] ) + "</b><br>"
  ENV.each do |k,v|
    html << "<b>#{k}:#{v}</b><br>"
  end
  cgi.keys.each do |key|
    html << "<b>#{key}:#{cgi.params[key][0]}</b><br>"
  end
  html + "</body></html>"
}
