NaviServer - programmable web server

[ Main Table Of Contents | Table Of Contents | Keyword Index ]

ns_getcontent(n) 4.99.19 naviserver "NaviServer Built-in Commands"

Name

ns_getcontent - Return the message body of a received request

Table Of Contents

Synopsis

Description

This command returns the content of a request as file or as string, no matter, whether it was spooled during upload into a file or not. The user can specify, whether the result should treated as binary or not. the default is "-as_file true", since this will not run into memory problems on huge files.

COMMANDs

ns_getcontent ?-as_file bool? ?-binary bool?

Returns as result the file name of the tmp file (when spooled to a file, default) or the content of the file (when as_file is false). When -binary is true (default) the result is returned literally, otherwise the content is translated to the active charset.

Typically this command is used on POST, PUT, PROPFIND or similar requests.

See Also

ns_conn, ns_getform

Keywords

form