Fast-CGI 说明

使用要求

  • 只能使用/cgi-bin/*的方式提交Fast-CGI申请;
  • 在输入任何字符前,先输出的头部内容,必须包含Content-type: text/html\n
  • 输入的头部和返回的结果间,以\n\n作为分隔;
  • 缓存控制,尤其针对Internet Explorer,在头部输出Cache-Control: no-cache, must-revalidate\n

示例

local function CGI.Reply(message)
    io.write("Content-type: text/html\n")
    io.write("Cache-Control: no-cache, must-revalidate\n")
    io.write("\n")
    io.write(message)
end

results matching ""

    No results matching ""