CGIPLUSCALLOUT.C

Usage count: 1

This script provides a simple demonstration of the CGIplus callout facility, used to suspend normal script output and communicate directly with the server. This allows the script to request information from the server, or set certain script operating parameters, etc.

To begin an callout the CGIPLUSESC environment variable (logical name) is output as a record. For this script it has a value of:

  $E-ACB861910E2B7E1E0C598407-

(but of course is not static, and varies each time the script is first executed).

A single-record script request followed by a single-record server response dialog may then be engaged in.

To end an callout the CGIPLUSEOT environment variable (logical name) is output as a record. For this script it has a value of:

  $D-AE7BC632C860400B985ED7D0-

(and also will vary each time the script is first executed).

Normal script output (to the browser) is then resumed. When in callout mode one or more request/responses may be made. Normal and callout output may be interleaved during a script response, as this script illustrates.

Example Behaviour

Comments

Success responses begin with an HTTP-like "200", other responses with appropriate status codes.