Back to product page

Filename property


Holds full path where request data was saved.

Type

String

Syntax

  • Basic
object.Filename [= value]
The Filename(object,value) syntax has these parts:
objectAn expression evaluating to an object of type WebRequest
valueA String value.

Remarks

wodWebServer always saves content in the file on local disk. If Filename property isn't set by your code, wodWebServer creates temporary file in temporary directory, uses it as storage space, and then deletes the file when Request is destroyed. Filename is set by wodWebServer only if client's request contains body data.

Since most HTTP requests are to GET resource from the website, bodies are usually empty. You can access contents of this file directly by reading/writing to a file on disk, or you can use Body property which is wrapper that loads and saves body for you - but presents it as String variable.

Platforms

Windows