lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Feb 23, 2011, at 4:53 PM, Regular Joe wrote:

> The usage is as simple as the following:
> 
>    CGI = require("CGI")
>    cgi = CGI()
>    cgi:sendHeader(200, "Content-Type", "text/html")
>    cgi:write("Hello World")

Nice. At least it does exactly what it says on the tin :P

FWIW, here is a rather obsolete variant:

http://dev.alt.textdrive.com/browser/LW/CGI.lua

Pseudo documentation:

http://dev.alt.textdrive.com/browser/LW/CGI.html?format=raw

Mandatory pseudo example:

local CGI = require( "CGI" )

CGI:response():write( "Hello?", "Hello?" )