There are two methods, how CGI exchanges parameters with the called program:
| Methods | Input | Output |
|---|---|---|
| Get | environment variable QUERY_STRING | Standard Out (stdout) |
| Post | Standard In (stdin) | Standard Out (stdout) |
Note: ILE RPG/400 and COBOL/400 offer routines to accomplish these C functions.
POST is the preferred method:
Remember to enable the method you use within the HTTP configuration file.
CGI030