-
-
Notifications
You must be signed in to change notification settings - Fork 10
iis module
Tatsuro Shibamura edited this page Jun 24, 2015
·
6 revisions
iis module.
-- call Win32 API OutputDebugString
iis.debug("debug message")if iis.req.get_url() == "/" then
iis.exec("/another_page")
end-- return 404 not found
iis.exit(404)-- flush buffering content
iis.flush()if iis.headers_sent()
iis.debug("already sent response headers")
endphysicalPath = iis.map_path("/")
iis.debug(physicalPath)-- write to response body
iis.print("hello, world")-- redirect to url (default: 302)
iis.redirect("http://buchizo.wordpress.com/")
-- 301 redirect
iis.redirect("http://buchizo.wordpress.com/", 301)- Getting Start
- Reference