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

Method GetRequestBody

API

Returns request body data

Watch this video to learn how to use this method

Have a problem with playback?
GetHeaderNames method returns names of all of the API response headers. Prior to use this function you need to insert Execute method. The output of GetHeaderNames is array of header's names presented in the received response. We will use messagebox to demonstrate the output. Here you can see all presented headers separated by the comma.

Usage

Function GetRequestBody(
  Boolean Report [Optional]
)

Method

ZAP API Method step

GetRequestBody

True

body

Report

Output Parameter

Parameters

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Request body data

Example

VBScript

body = Server("API Server").Method("Method").GetRequestBody(True)

JavaScript


var body = Server("API Server").Method("Method").GetRequestBody(true);

Method

ZAP API Method step

GetRequestBody

True

body

Contact Us

1425 Market Blvd Suite 530-230

Roswell, GA 30076, USA

(800) 795-3552