Syntax:
READ [BODY|HEADER|CHUNK size] {VAR varname | FILE [APPEND] NAME filespec}
Reads (receives) information from an HTTP client. Either the header lines (if HEADER is specified) or the body data are read (if BODY or CHUNK is specified). The default source is BODY.
If CHUNK is specified, the keyword must be followed by a non-negative integer size, and this is the number of bytes that will be read from the body. If BODY is specified, the size is taken from the Content-Length field in the header.
Then:
The named file is overwritten unless APPEND is specified (in which case the data are written following the end of any existing data).
The READ command has no effect under the Gopher protocol, or if the client did not send an HTTP/1.0 or later request (though in both cases the command syntax is checked).
[ previous section | contents | next section ]
From 'goserve.doc', version 2.52.
Copyright © IBM Corporation, 1993, 1998. All rights reserved.