Library to support CGI programming in the HTML library.
It is only intended as an auxiliary library to implement dynamic web
pages according to the HTML library.
It contains a simple script that is installed for a dynamic
web page and which sends the user input to the real application
server implementing the application.
Author: Michael Hanus
Version: November 2007
| Exported names: |
Datatypes:
CgiServerMsg
Constructors:
CgiSubmit
| CleanServer
| GetLoad
| ShowStatus
| SketchHandlers
| SketchStatus
| StopCgiServer
Functions:
cgiServerRegistry
| noHandlerPage
| readCgiServerMsg
| registerCgiServer
| runCgiServerCmd
| unregisterCgiServer
| Summary of exported functions: |
|
||
|
||
|
||
|
||
|
||
|
| Imported modules: |
| Exported datatypes: |
The messages to comunicate between the cgi script and the server program. CgiSubmit env cgienv nextpage - pass the environment and show next page, where env are the values of the environment variables of the web script (e.g., QUERY_STRING, REMOTE_HOST, REMOTE_ADDR), cgienv are the values in the current form submitted by the client, and nextpage is the answer text to be shown in the next web page
Constructors:
:: [(String,String)] -> [(String,String)] -> CgiServerMsg
:: CgiServerMsg
GetLoad - get info about the current load of the server process
:: CgiServerMsg
SketchStatus - get a sketch of the status of the server
:: CgiServerMsg
SketchHandlers - get a sketch of all event handlers of the server
:: CgiServerMsg
ShowStatus - show the status of the server with all event handlers
:: CgiServerMsg
CleanServer - clean up the server (with possible termination)
:: CgiServerMsg
StopCgiServer - stop the server
| Exported functions: |
:: Handle -> IO (Maybe CgiServerMsg)
Reads a line from a handle and check whether it is a syntactically correct cgi server message.
:: String -> CgiServerMsg -> IO ()
Executes a specific command for a cgi server.
:: String -> String -> String
:: String
The name of the file to register all cgi servers.
:: String -> String -> IO ()
:: String -> IO ()