Get your 6-month No-Cost Opt-Out offer for Unlimited software automation!

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