get, request, raw, body, api, request, response, send, soap, rest, get, post, put, delete

Method GetRequestRawBody

API

Gets Request Raw Body Data

Watch this video to learn how to use this method

Have a problem with playback?
GetRequestRawBody returns request Raw Body data Let's output current Raw Body data via messagebox Run and we can see the expected Raw body data.

Usage

Function GetRequestRawBody(
  Boolean Report [Optional]
)

CreateBook

ZAP API Method step

GetReq...Body

True

body

Report

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")

Contact Us

1425 Market Blvd Suite 530-230

Roswell, GA 30076, USA

(800) 795-3552