Method GetRequestRawBody

Gets Request Raw Body Data

Usage

Function GetRequestRawBody(
  Boolean Report [Optional]
)

CreateBook

ZAP API Method step

GetReq...Body

True

body

Boolean Report [Optional]

Output Parameter

Parameters

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Request Raw Body Data

Example

VBScript

' Show request raw body in message box
msgbox Server("API Server").Method("CreateBook").GetRequestRawBody(True)

JavaScript

// Show request raw body in message box
alert(Server("API Server").Method("CreateBook").GetRequestRawBody(true));

Comment

Get request raw body and display it in message box

Script-Less next step

CreateBook

ZAP API Method step

GetReq...Body

True

body

Script-Less next step

ZAP Utility

ZAP Utility step

Zap.Comm...Box

Zap.Var...("body")