WeOnlyDo! wodWebServer ActiveX - Body Property
      
 

Description

Holds full request data body, if any.


Property type

A String value.  


Syntax

object.Body [= value]



The Body Property syntax has these parts:

Part Description
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.