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
Hi,
“Raymond Blum” raymond@thebyteboard.com wrote in message
news:3D6C3D60.6060905@thebyteboard.com…
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
ENV[‘SERVER_NAME’]
ENV[‘SERVER_PORT’]
Park Heesob