From: "Mark J. Reed" Date: 2003-07-21T02:36:04+09:00 Subject: Re: Parsing POST and GET variables simultaneously? On Mon, Jul 21, 2003 at 12:39:08AM +0900, David Heinemeier Hansson wrote: > Isn't it possible to get variables from POST and GET simultaneously? Not really, since REQUEST_METHOD can only be set to one of 'GET' or 'POST', and cgi.rb takes its cue from that. Even with REQEUT_METHOD set to POST, you can still get the query string via cgi.query_string, or use '/' instead of the '?', in which case it shows up as cgi.path_info:
Either way, you have to parse the string yourself, though. Identify the name=value pairs, decode the '+'s and '%xx's into spaces and other unprintable characters, etc. -Mark