Thanks, this is exactly what I need.  Much appreciated!

--
Norman

----- Original Message ----- 
From: "Wakou Aoyama" <wakou / fsinet.or.jp>
To: "ruby-talk ML" <ruby-talk / ruby-lang.org>
Sent: Tuesday, March 26, 2002 5:24 AM
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  <wakou / fsinet.or.jp>
>