Retrieve stdin

xcall CGIUTL, CGIOP_STDIN, string, status

Opcode 1, CGIOP_STDIN retrieves the entire stdin into the string parameter. The web server will have put all of the form information to be passed to the CGI program into stdin, provided that you set the form method to "POST." This is considered a utility operation and is probably not necessary since most of the other operations are capable of reading the stdin directly.

Parameters

string  (String)  [in]

The text to be output to the browser. A CRLF is appended to the string, analogous to a PRINT statement.

status (Signed Num)  [out]

Returns 0 for ok, 1 for overflow (string too small), or -1 if not in CGI mode (i.e. –cgi switch not specified).