From: Wakou Aoyama Date: 2002-03-26T05:24:49+09:00 Subject: Re: CGI testing On Tue, Mar 26, 2002 at 05:05:37AM +0900, Wakou Aoyama wrote: > ENV['REQUEST_METHOD'] = 'GET' > ENV['QUERY_STRING'] = 'query1=%7Evalue1&query2=value1&query2=value2' snip > $ export REQUEST_METHOD=GET > $ export QUERY_STRING='query1=%7Evalue1&query2=value1&query2=value2' or will it be the following semantics? $ cat test.rb require 'cgi' cgi = CGI.new cgi.params = {"query1"=>["value1", "value2"], "query2"=>["~value1"]} p cgi.params $ ruby test.rb dummy=foo {"query1"=>["value1", "value2"], "query2"=>["~value1"]} or $ export REQUEST_METHOD=GET $ ruby test.rb {"query1"=>["value1", "value2"], "query2"=>["~value1"]} -- Wakou Aoyama