HttpRequest Method (RUNTIME)


10.2

 

The HttpResponse method determines whether a FastCGI session should be started. The method uses the following format:

 

[label]

{object}.HttpRequest

[GIVING {return}] USING [*Timeout=]{timeout}[:

 

 

[*Options=]{options}]

 

Where:

label

Optional. A Program Execution Label.

object

Required. A RUNTIME object that has been previously declared.

return

Optional. A Numeric Variable that returns the pass\failure values for the execution of the method.

timeout

Optional. A Numeric Variable or decimal number that specifies the number of seconds to wait for a FastCGI session request. The default is one second.

options
Optional. A Numeric Variable or decimal number that specifies a bit mask value that controls the behaviors of this method.

Flags Affected: OVER, ZERO

Note the following:

  1. The ZERO flag is set if the {return} value is zero.

  2. The {return} value indicates whether the method passes or fails as follows:

  3.  

    Value

    Description

    0

    A FastCGI session has been initiated.

    1

    The PWS Server has requested the program to SHUTDOWN.

    2

    No FastCGI session was requested before the timeout period.

    3

    A previous FastCGI session is still in progress.

    4

    FastCGI mode is not active.

    5

    An operational error has occurred during FastCGI mode.

     

  4. The OVER flag is set if the {return} variable is too small to receive the numeric result.

  5. Once a FastCGI session is active, the HttpStdinSize and HttpSdtinData can obtain STDIN data.

  6. The HttpResponse method completes a FastCGI session.

  7. This method is not available under Windows CE or the PL/B WebServer.

 

 

See Also: RUNTIME, RUNTIME Methods, Method Syntax

 



PL/B Language Reference GetOSVersionItem (RUNTIME) HttpResponse Method (RUNTIME)