Method SetRequestHeader
Sets Request Header valueUsage
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"));
Comment
Display header value in message box