From: David Tillman Date: 2001-08-03T00:39:55+09:00 Subject: [ruby-talk:19033] Re: YAWN Question (Your Annoying Wandering Newbie) >>>>> Matt writes: >> What's wrong with ENV['REQUEST_METHOD'] ? > Well, mainly that the HTTP server doesn't seem to be setting > that in the environment. :/ So, I was hoping that someone would > suggest something different. > I guess I'll wait if no one has a better idea. > --Matt > (Yes, ENV['REQUEST_METHOD'] was my first try...) the_method = (ENV['QUERY_STRING'] and (cgi.params.length > 0)) ? 'GET' : 'POST' -Dave (one of the other Dave's) -- How absolute the knave is! We must speak by the card, or equivocation will undo us.