-1 The database file contains definitions for structure fields for which the
CGI input has no corresponding keyword.
-2 The CGI input contains one or more keywords for which the database
file contains no corresponding field.
-3 A combination of the condition for response codes -1 and -2 has been
detected.
-4 An error occurred while converting the CGI input string to the DDS
defined data types. The data may or may not be usable.
-5 This API is not valid when a program is not called by the IBM HTTP
Server. No data parsing is done.
-6 This API is not valid when operating in %%BINARY%% mode. No
data parsing is done.
Error Code
I/O CHAR(*)
The structure in which to return error information. For the format of the
structure and for details on how to process API errors, see the programming
topic in the AS/400 Information Center.
Error messages
CPF24B4 E
Severe Error while addressing parameter list.
CPF3C17 E
Error occurred with input data parameter.
CPF3C19 E
Error occurred with receiver variable specified.
CPF3CF1 E
Error code parameter not valid.
CPF9810 E
Library &1 not found.
CPF9812 E
File &1 in library &2 not found.
CPF9822 E
Not authorized to file &1 in library &2
Parse QUERY_STRING Environment Variable or Post stdindata (QzhbCgiParse) API
You can use the QzhbCgiParse API to parse the QUERY_STRING environment
variable, in the case of the GET method, or standard input, in the case of POST
method, for CGI scripts. If the QUERY_STRING environment variable is not set,
the QzhbCgiParse API reads the CONTENT_LENGTH characters from its input.
All return output is written to its standard output.
You can only call QzhbCgiParse once for the POST method. Touse this API with
the POST method, you would first want to read all of stdin and assign it to the
QUERY_STRING environment variable. Youwould then change the environment
variable REQUEST_METHOD to GET.
32 WebProgramming Guide V4R5