Virtual host and port number in CGI

From: Raymond Blum <raymond@...>
Date: 2002-08-28 03:03:54 UTC
List: ruby-core #376
Hi
   I am trying to figure out how to get the hostname and port # that was 
used to invoke a Ruby program that is being run as a CGI (from Apache). 
   Can anyone point me at a simple example or describe the technique? 
This should be a FAQ or at least straightforward, but either it is not 
or I have been stricken brain-dead.

Thanks In Advance
---Raymond

In This Thread

Prev Next