Webkit
hands CGI input to your program in an array and
receives CGI output on standard output (stdout).
Create a function called
wkmain (aEnv, aData)
to handle CGI forms input. This function must have the
following characteristics:
aEnv
array to recover
environment variables from the calling
HTML form.
When linking a CGI-enabled FlagShip program for Batch Mode or Proxy Mode, you need to specify wkmain as your program's main module (by using the -M switch). The linker will find wkmain() in libwebkit.a for you.