Back to product page
- Introduction
- License agreement
- Getting Started
- Enumerations
- Objects
- How to get support?
- Technical information
- Fast notifications interface
- Error list
Body property
Holds full request data body, if any.
Type
StringSyntax
- Basic
object.Body [= value]
The Body(object,value) syntax has these parts:
The Body(object,value) syntax has these parts:
object | An expression evaluating to an object of type WebRequest |
value | A 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.