ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaie_5.4.0.1/rzaieparcgi.htm

98 lines
8.2 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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="Common Gateway Interface" />
<meta name="abstract" content="This topic provides information about Common Gateway Interfaces (CGI)." />
<meta name="description" content="This topic provides information about Common Gateway Interfaces (CGI)." />
<meta name="DC.Relation" scheme="URI" content="rzaieprogramming.htm" />
<meta name="DC.Relation" scheme="URI" content="rzag3ch1overview.htm" />
<meta name="DC.Relation" scheme="URI" content="rzag3ch1envvar.htm" />
<meta name="DC.Relation" scheme="URI" content="rzag3ch4ovrvwhghavailcgi.htm" />
<meta name="DC.Relation" scheme="URI" content="rzag3ch4guidelines.htm" />
<meta name="DC.Relation" scheme="URI" content="rzag3ch3ovrvwpercgi.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaieprogcgi.htm" />
<meta name="DC.Relation" scheme="URI" content="rzag3ch1cgiprocess.htm" />
<meta name="DC.Relation" scheme="URI" content="rzag3ch4cgipgmintrfc.htm" />
<meta name="DC.Relation" scheme="URI" content="rzag3ch1cgipgmsactgrs.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaieconfigcgi.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaierefcgipase.htm" />
<meta name="DC.Relation" scheme="URI" content="rzag3ch2enablesrvrcgipms.htm" />
<meta name="DC.Relation" scheme="URI" content="rzag3ch6troubleshooting.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="rzaieparcgi" />
<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>Common Gateway Interface</title>
</head>
<body id="rzaieparcgi"><a name="rzaieparcgi"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Common Gateway Interface</h1>
<div><p>This topic provides information about Common Gateway Interfaces
(CGI).</p>
<div class="important"><span class="importanttitle">Important:</span> Information
for this topic supports the latest PTF levels for HTTP Server for i5/OS .
It is recommended that you install the latest PTFs to upgrade to the latest
level of the HTTP Server for i5/OS. Some of the topics documented here are
not available prior to this update. See <a href="http://www-03.ibm.com/servers/eserver/iseries/software/http/services/service.html" target="_blank">http://www.ibm.com/servers/eserver/iseries/software/http/services/service.htm</a> <img src="www.gif" alt="Link outside Information Center" /> for more information. </div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rzag3ch1overview.htm">Overview of CGI</a></strong><br />
This topic provides information about CGI. Common Gateway Interface (CGI) is a standard, supported by almost all web servers, that defines how information is exchanged between a web server and an external program (CGI program).</li>
<li class="ulchildlink"><strong><a href="rzag3ch1envvar.htm">Environment variables</a></strong><br />
Before you begin writing your CGI program, you need to understand the format in which the server will pass the data. The server receives the URL-encoded information and, depending on the type of request, passes the information to the CGI program. The server does this by using environment variables, command line arguments, or standard input.</li>
<li class="ulchildlink"><strong><a href="rzag3ch4ovrvwhghavailcgi.htm">Overview of High Availability CGI</a></strong><br />
High availability CGI programs use APIs to preserve the CGIs state between successive client requests. A High availability CGI program stores its state data on the Web server and can retrieve its state even after a failure or switchover of the HTTP Server or system.</li>
<li class="ulchildlink"><strong><a href="rzag3ch4guidelines.htm">Guidelines for writing high availability CGIs</a></strong><br />
By understanding the guidelines for writing cluster-enabled CGIs, you can avoid potential problems with your CGI code.</li>
<li class="ulchildlink"><strong><a href="rzag3ch3ovrvwpercgi.htm">Overview of Persistent CGI</a></strong><br />
<dfn class="term">Persistent CGI</dfn> is an extension to the CGI interface
that allows a CGI program to remain active across multiple browser requests
and maintain a session with that browser client. This allows files to be left
open, the state to be maintained, and long running database transactions to
be committed or rolled-back based on end-user input. </li>
<li class="ulchildlink"><strong><a href="rzaieprogcgi.htm">Common gateway interface (CGI) programs for the HTTP Server</a></strong><br />
</li>
<li class="ulchildlink"><strong><a href="rzag3ch1cgiprocess.htm">The CGI Process</a></strong><br />
Usually CGI programs are referred to from within HTML documents. In general, the HTML document format defines the environment variables that specify the passing of information. When you design the layout of your HTML document, you must keep in mind how a CGI program might affect the look of your document. Developing the CGI program along with the HTML document will help you avoid many design mistakes.</li>
<li class="ulchildlink"><strong><a href="rzag3ch4cgipgmintrfc.htm">CGI Program Interface</a></strong><br />
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.</li>
<li class="ulchildlink"><strong><a href="rzag3ch1cgipgmsactgrs.htm">CGI Programs and Activation Groups</a></strong><br />
The following section is intended to give a brief overview of Activation Groups.</li>
<li class="ulchildlink"><strong><a href="rzaieconfigcgi.htm">Set up CGI programs for HTTP Server (powered by Apache)</a></strong><br />
This topic describes how to set up your HTTP Server to use CGI programs.</li>
<li class="ulchildlink"><strong><a href="rzaierefcgipase.htm">CGI in PASE for HTTP Server</a></strong><br />
</li>
<li class="ulchildlink"><strong><a href="rzag3ch2enablesrvrcgipms.htm">How to enable the server to run CGI programs</a></strong><br />
The iSeries™ server
stores some CGI programs in QSYS.LIB. You can write the programs in C++, REXX,
ILE C, ILE RPG, or ILE COBOL. If the UserID directive is not active, the server
profile QTMHHTP1 needs access to the *PGM object and all objects the program
accesses. If the UserID directive is active, the UserID profile needs access
to the *PGM object and all objects the program accesses. The ScriptAlias directive
is required in HTTP Server (powered by Apache) configuration to run a CGI
program on the server.</li>
<li class="ulchildlink"><strong><a href="rzag3ch6troubleshooting.htm">Troubleshooting your CGI programs</a></strong><br />
You can use the Work with Active Jobs (WRKACTJOB) command to check on the status of server jobs.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaieprogramming.htm" title="This topic provides information on CGI, directives, APIs, and other programming topics.">Programming</a></div>
</div>
</div>
</body>
</html>