WeOnlyDo! wodWebServer ActiveX - CGIStart Event
    
 

Description

Fires when CGI script is ready to be started.


Syntax

Private Sub object_CGIStart(User, FullPath, Environment)



The CGIStart Event syntax has these parts:

Part Description
object A wodWebServer object.
User A WebUser object. Reference to user that called CGI script.
FullPath A String value. Full path to executable that will be called, including any arguments you specified in CGIExecute method.
Environment A WebHeaders object. Reference to collection of WebHeader objects that will be converted to user's environment variables.

Remarks

CGIStart event is fired just before external CGI application is to be executed, as defined by Response.CGIExecute method. Before this application is executed, wodWebServer has to set up special environment for the application - and gives you option through this event to change environment of the application just before it's started.

Environment argument is a collection of WebHeader objects which are translated to environment variables - feel free to add (or remove) new variables if you think they are required.