fbpx

Method GetHeaderValues

Returns array of response header values by header name

Usage

Function GetHeaderValues(
  String HeaderName,
  Boolean Report [Optional]
)

Parameters

HeaderName

Type: String

Header Name

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Header Values String Array

Example

VBScript

Server("API Server").Method("Method").Execute
' Execute method should be called before getting header values
headerValues = Server("API Server").Method("Method").GetHeaderValues("Server", True)

JavaScript

Server("API Server").Method("Method").Execute();
// Execute method should be called before getting header values
var headerValues = Server("API Server").Method("Method").GetHeaderValues("Server", true);

Documentation Categories

ZAPTEST

FARM

LOAD

Virtual Expert

ZAPTEST

ZAPTEST Logo