A Basic CGI Script : CGI CGI Ruby



#!/usr/bin/ruby

puts "Content-type: text/htmlnn"
puts "<html><body>This is a test</body></html>"


If you called this script test.cgi then visiting http://www.example.com/test.cgi