Script Packager Object Model Reference

IHttpRequest.Content Property

The content to sent with a POST or PUT request.

object Content {get; set;}

Remarks

The following types are supported for the Content property; * Basic data types such as Text, Long, Boolean, Date. (Content-Type=text/plain) Values are converted to a string using an "invariant culture". If it is neccessary to send a basic data type as JSON then the JsonSerialize function should be used to convert the value to a string and the Content-Type header will also need to be set. * An mrScriptBasic generic object created using CreateObject() - (Content-Type=application/json) * An MSXML DOM Document (Content-Type=application/xml) * Binary data set via LoadContent() (Content-Type not set)

See Also

IHttpRequest Interface | Intelligence.FuncLibs.Http.HttpRequest Namespace