Back to product page

Body property (HttpRequest)


Holds request body.

Type

A String value. Full body of the document through string variable.

Syntax

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

Remarks

Body property holds full body of the resource that will be sent to the server with next request. It will be send as-is, with no changes. You can access body property directly to adjust this contents to your needs easily.

If you plan to upload large files, using Body property directly may not be a good idea, because transferring and converting from file contents to unicode characters presented by VB may take time and consume resources - so choose wisely if it's better to use Body property, or to read/write file on the disk directly (provided with Filename property).

Platforms

Windows