WeOnlyDo! wodWebServer ActiveX - CGIStart Method
      
 

Description

Called when CGI script is ready to be started.


Return Type

None  


Syntax

object.CGIStart Owner, User, FullPath, Environment



The CGIStart Method syntax has these parts:

Part Description
object An expression evaluating to an object of type IwodWebNotify.
Owner Required. A wodWebServerCom object. Reference to wodWebServer instance that called this notification method.
User Required. A WebUser object. Reference to user that called CGI script.
FullPath Required. A String value. Full path to executable that will be called, including any arguments you specified in CGIExecute method.
Environment Required. A WebHeaders object. Reference to collection of WebHeader objects that will be converted to user's environment variables.

Remarks

NOTE: This method is called only if you implemented IwodWebNotify interface in your application, and wodWebServer.Notification property has received reference to instance of your implementation.

CGIStart notification method is called 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 notification 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.