65 lines
4.4 KiB
HTML
65 lines
4.4 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="topic" />
|
|
<meta name="DC.Title" content="CGI Program Interface" />
|
|
<meta name="abstract" content="A Web server passes information to CGI programs using environment variables. If the HTTP Method is ″POST″ the CGI also obtains information from the Web Server through stdin. The CGI program uses stdout to send its response back to the Web server. The response consists of a set of headers (such as Content-Length and Content-Type) followed by the response body which is frequently HTML data." />
|
|
<meta name="description" content="A Web server passes information to CGI programs using environment variables. If the HTTP Method is ″POST″ the CGI also obtains information from the Web Server through stdin. The CGI program uses stdout to send its response back to the Web server. The response consists of a set of headers (such as Content-Length and Content-Type) followed by the response body which is frequently HTML data." />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaieparcgi.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2002,2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2002,2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzag3ch4cgipgmintrfc" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>CGI Program Interface</title>
|
|
</head>
|
|
<body id="rzag3ch4cgipgmintrfc"><a name="rzag3ch4cgipgmintrfc"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">CGI Program Interface</h1>
|
|
<div><p>A Web server passes information to CGI programs using environment
|
|
variables. If the HTTP Method is ″POST″ the CGI also obtains information from
|
|
the Web Server through stdin. The CGI program uses stdout to send its response
|
|
back to the Web server. The response consists of a set of headers (such as
|
|
Content-Length and Content-Type) followed by the response body which is frequently
|
|
HTML data.</p>
|
|
<p>The following environment variables are passed by the Web server to High
|
|
Availability CGI programs:</p>
|
|
<ul><li>QZHBIS_FIRST_REQUEST</li>
|
|
<li>QZHBIS_CLUSTER_ENABLED</li>
|
|
<li>QZHBNEXT_SESSION_HANDLE</li>
|
|
<li>QZHBRECOVERY</li>
|
|
</ul>
|
|
<p>The ″Cluster-Enabled″ and ″Accept-HTSession″ headers should be returned
|
|
in each response from a High Availability CGI program. Cluster-Enabled:1</p>
|
|
<p>An error will result if the ″Cluster-Enabled″ header is returned by a CGI
|
|
program with a value of ″1″, but the Web Server is not configured to allow
|
|
that CGI program to be Highly available.</p>
|
|
<p>When the Web server receives the ″Cluster-Enabled″ header with a value
|
|
of ″1″, the server will create a new session entry and indicate that the session
|
|
is cluster-enabled.</p>
|
|
<p>Cluster-enabled CGI programs will return the ″Accept-HTSession″ header
|
|
to the Web server with a value equal to the value passed to the CGI in the
|
|
QZHBNEXT_SESSION_HANDLE environment variable. An error will result if the
|
|
value specified with ″Accept-HTSession″ does not match the value passed to
|
|
the CGI in QZHBNEXT_SESSION_HANDLE. For CGI programs that are not cluster-enabled,
|
|
the ″Accept-HTSession″ CGI header remains unmodified.</p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaieparcgi.htm" title="This topic provides information about Common Gateway Interfaces (CGI).">Common Gateway Interface</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |