wwRequest::InitializeRequest

This method is responsible for setting up the Request object on each hit by passing in the POST data in some format and making it available to the specific Get methods. This method is fired on every Web request hit and deals with clearing out values from previous requests and then reassigning new values.

It deals with setting up the form data, configuring the querystring and setting up. Once this method complete the Request object is fully operational and can be accessed as normal.

This method is called internally only, but it's the vital piece that sets up the request properly for operation.

If for whatever reason to choose to implement your own Request implementation make sure that this method gets called on every request that needs to be processed as this method essentially sets up the Request object to return appropriate values for its interface.

o.initializerequest(lcPostData, lcTempPath)

Return Value

nothing

Parameters

lcPostData
The post data as a string by default with Web Connection's ISAPI extension. With ASP messaging this parameter will contain the ASP Request object. This data is used to set up the Request object to use the standard interface described through this class.

lcTempPath
This is required only for file based operation, which needs to know where the HTML output needs to be written to.

Remarks

This method is always automatically called from wwServer::ProcessHit().

This method needs to be implemented for every new Request class that works of data different than the Web Connection ISAPI extension. The wwASPRequest class for example overrides this method.

The content of the lcPostData generally will be in this format: EncodedServerVariables + POST_BOUNDARY + EncodedFormVariables.


See also:

Class wwrequest

© West Wind Technologies, 1996-2024 • Updated: 10/27/04
Comment or report problem with topic