News
Abstract
Persistent C CGI programming example
Content
You are in: IBM i Technology Updates > Web Integration on i > IBM HTTP Server for i > Introduction > CGI programming example > Persistent C CGI programming example
This sample code is provided by IBM for illustrative purposes only. It has not been fully tested. It is provided as-is without any warranties of any kind, including but not limited to the implied warranties of merchantability and fitness for a particular purpose.
This program demonstrates how CGI applications maintain state by keeping a CGI server job alive for multiple requests from a browser to the CGI application. This is accomplished through a persistent connections CGI application. The application tells the server it is a persistent CGI using the Accept-HTSession CGI header as the first header it returns. In this program a global static variable 'count' is incremented each time the program is called with a specific HTSesssion request.
To install the example program, do the following:
|
Was this topic helpful?
Document Information
Modified date:
30 January 2020
UID
ibm11172224