fbpx

Method SetRequestHeader

Sets Request Header value

Usage

Function SetRequestHeader(
    String Name,
    String Value
)

Parameters

Name

Type: String

The name of the Header

Value

Type: String

The new value to set (must be a string)

Returns

No return value

Example

VBScript

Server("API Server").Method("GetBookById").SetRequestHeader "Test", "Unknown header"
' Display header value in message box
msgbox Server("API Server").Method("GetBookById").GetRequestHeader("Test")

JavaScript

Server("API Server").Method("GetBookById").SetRequestHeader("Test", "Unknown header");
// Display header value in message box
alert(Server("API Server").Method("GetBookById").GetRequestHeader("Test"));

Documentation Categories

ZAPTEST

FARM

LOAD

Virtual Expert

ZAPTEST

ZAPTEST Logo