Back to product page

Body property


Holds full request data body, if any.

Type

String

Syntax

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

Remarks

Body property holds full body sent by the client (but without headers!). It is intact - wodWebServer does not interfere with the contents of the body. When Body property is accessed, wodWebServer will actually open file defined in Filename property, read/write to it and present it to you as String value.

Even when you expect data posted by the client, it is possible that you don't need to access contents of the Body property directly. Since most requests will either post data using application/x-urlencoded content type, or will be upload it (used for larger content, such as files) using multipart/form-data content type. In both cases, you can use wodWebServer's wrapper: Posted property for first type, and Uploads property for second type.

Platforms

Windows