Mega Code Archive
Categories
/
Ruby
/
CGI
A Basic CGI Script
#!/usr/bin/ruby puts "Content-type: text/html\n\n" puts "This is a test" If you called this script test.cgi then visiting http://www.example.com/test.cgi