Please enable JavaScript to view this site.

A-Shell Reference

Navigation: Subroutines > CGIUTL

Retrieve stdin

Scroll Prev Top Next More

xcall CGIUTL, CGIOP_STDIN, string

Opcode 1, CGIOP_STDIN retrieves the entire stdin into the string parameter. The web server sends all of the form and parameter information from the request to the CGI program via the stdin channel for both the GET and POST methods. This method isn't typically necessary if you just want to retrieve standard parameters, since CGIOP_GETPAR is able to access the stdin channel directly. But it is essential for retrieving the body of a request, such as a SOAP request, or any request formatted as an XML or JSON document.

Parameters

string (String or unformatted)  [in]

Returns the contents of stdin, up to the size of string (if fixed). If dynamic (S,0 or X,0) string will be expanded as needed to contain the entire stdin.

status (Signed Num)  [out]