From: nick@... (Nick Drochak) Date: 2001-05-22T11:41:25+09:00 Subject: [ruby-talk:15516] Re: IIS application mapping r2d2@mao.acc.umu.se (Niklas Frykholm) wrote in : >In article , Jim Menard wrote: >>> 1) How do I get the paramters from the URL, e.g. test.rb?p=1 >>> 2) How do I get access to the data if it was POSTed? >> >>In the Unix world, GET uses environment variables and POST uses >>standard input. I don't know how this would work using IIS. > >It is the same (but I think IIS also supports some other forms of CGI >parameter passing). Have you tried the cgi module in the ruby distro. >Doesn't it work? > >// Niklas Hi Niklas, cool name! I did finally stumble upon the cgi module, although that has just opened another can of worms...see my post in a different thread. I am starting to get the idea of how to get at the query string and also at the posted data. The CGI module makes that pretty easy. Now, my question is, what is the advantage of using IIS with this mapping as opposed to just using a simple http deamon of some kind? Do you know of anyway to get to all those nifty IIS objects, like the ObjectContext, Response, Request, etc. from within the ruby program that gets called? Thanks, Nicklas Drochak