About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
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:
|
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Component":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]
Was this topic helpful?
Document Information
More support for:
IBM i
Software version:
All Versions
Operating system(s):
IBM i
Document number:
1172224
Modified date:
30 January 2020
UID
ibm11172224
Manage My Notification Subscriptions