From: ts Date: 2002-04-07T23:43:22+09:00 Subject: Re: newbie to ruby >>>>> "A" == Adrian Immler writes: A> is there any easy way to access post & get HTTP data from my apache server A> running the ruby files as CGI ? Well, you have the module cgi.rb in the standard distribution A small example given in cgi.rb == EXAMPLE === GET FORM VALUES require "cgi" cgi = CGI.new values = cgi['field_name'] # <== array of 'field_name' # if not 'field_name' included, then return []. fields = cgi.keys # <== array of field names # returns true if form has 'field_name' cgi.has_key?('field_name') cgi.has_key?('field_name') cgi.include?('field_name') Guy Decoux