fbpx

Method SetRequestRawBody

Sets Raw Request Body Data and enables raw request property

Usage

Function SetRequestRawBody(
    String BodyData,
    Boolean UseRawBody [Optional]
)

Parameters

BodyData

Type: String

Request body data

UseRawBody (optional)

Type: Boolean

Default Value: True

If true uses Raw Body Data in a request

Returns

No return value

Example

VBScript

Server("API Server").Method("CreateBook").SetRequestRawBody "{""Author"": ""Unknown"", ...}", True

JavaScript

Server("API Server").Method("CreateBook").SetRequestRawBody("{""Author"": ""Unknown"", ...}", true);

Documentation Categories

ZAPTEST

FARM

LOAD

Virtual Expert

ZAPTEST

ZAPTEST Logo