fbpx

Method GetHeaderValue

Returns response header value

Usage

Function GetHeaderValue(
  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 Value

Example

VBScript

Server("API Server").Method("Method").Execute
' Execute method should be called before get header value
headerValue = Server("API Server").Method("Method").GetHeaderValue("Server", True)

JavaScript

Server("API Server").Method("Method").Execute();
// Execute method should be called before get header value
var headerValue = Server("API Server").Method("Method").GetHeaderValue("Server", true);

Documentation Categories

ZAPTEST

FARM

LOAD

Virtual Expert

ZAPTEST

ZAPTEST Logo