Hi,
I am using Fast-cgi ruby module and it works fine, but with "cgi"
module, when I try to read data (fields) from a HTML pages the following
code hangs. The code works without using "fcgi".

#!/usr/local/bin/ruby
require "fcgi"
require "cgi"
FCGI.each_request do |req|
  print "Content-type: text/html\n\n"
  print "<html><head>"
  print "<title> - Guest-book in Ruby - </title>"
  print "</head><body>"
  print "<h2>Guest-book</h2>"
  print "<hr>"
  cgi = CGI.new
  h = cgi.params
  ip_address = cgi.remote_addr
  name = h["name"].to_s # a field from a HTML page
  date = Time.now.asctime
  print "<br>"
  print "Name: ", name
  print "<br>"
  print "IP address: ", ip_address
  print "<br>"
  print "Visit date: ", date
  print "<br>"
  print "</body></html>"
end

Any hint?

Thank you.

Jilani