A Basic CGI Script : CGI « CGI « Ruby






A Basic CGI Script



#!/usr/bin/ruby

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


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

 








Related examples in the same category

1.Writing CGI Scripts