Mega Code Archive
Categories
/
Ruby
/
CGI
Output a string to web
#!/usr/bin/ruby # closed_cgi.rb require 'cgi' c = CGI.new("html4") c.out do c.html do c.h1 { 'Sorry, the Web is closed.' } end end # Content-Type: text/html # Content-Length: 137 # #
Sorry, the Web is closed.