page77.off... / googlemail.com wrote:

> So to my problem.  I have created a 'helloworld' web page and called it
> 'testcgi.rb'. I have put it in various directories, but whenever I try
> to execute it as a web page on my localhost - it just prints out the
> contents.  I look at httpd.conf and tremble, although I am not sure
> which is the right one.  I have installed 'instantrails' under
> c:\rubyrail
>
> Contents of testcgi.rb

Chances are it just needs to be called "testcgi.cgi" (i.e. using the
..cgi extension). This would be an Apache setup aspect.

The code is fine, by the way, though standards-wise you'd be better
using "\r\n\r\n" to end the HTTP headers, not just "\n\n".


Dave.