On Mon, Aug 19, 2002 at 06:24:27AM +0900, Francis Hwang wrote: > Philipp Meier <meier / meisterbohne.de> wrote in message news:<20020816113805.GA7192 / o-matic.net>... > > The server should report this as an environment variable: > > > > try adding $ENV.inspect in your script and look for PATH INFO, > > PATH TRANSLATED, QUERY STRING and SCRIPT NAME > > I tried Googling around for references of $ENV.inspect, but I didn't > find anything that made sense to me. (Couldn't find it in the Pickaxe > book either.) Could you be more specific about how I should do this? Try this: http://<%=$ENV['SERVER_NAME']%><%=$ENV['REQUEST_URI']%> You can see what all the environment variables for a CGI request are by looking at this webpage: http://www.aaanime.net/access/env.pl?This_is_the_query_string That page is written in Perl, but you get about the same environment variables in Ruby.