From: Rando Christensen Date: 2004-06-24T13:38:08+09:00 Subject: Re: Why doesn't this work? (CGI) On Thu, 24 Jun 2004 05:07:57 +0900, Orion Hunter wrote: > That thought had crossed my mind, but the fact that the following worked: > > when I clicked on the url made me beleive that I could mix and mash. Yes, you can absolutely mix and match POST and GET as long as your argument parser knows the difference, which it appears cgi.rb does not. Looking through it's source it seems like on a POST it doesn't check the query args, only reading the post arguments. This isn't hard to parse on your own if you have to, but it also looks like you could get both sets of arguments this way, using a method in cgi.rb to do the parsing, but telling it what to parse yourself: query_args = CGI::parse( ENV['QUERY_STRING'] ) $stdin.binmode post_args = CGI::parse( $stdin.read(Integer(ENV['CONTENT_LENGTH'])) or '' ) -- Rando Christensen eyez@illuzionz.org