WsSetHeader

Specify any header information about the response content.

Syntax

bool WsSetHeader (string name, string value, bool add)

Parameters

name
The name of the header. Smart parameters are supported.
value
The value for the specified header. Smart parameters are supported.
add
If the specified header already exists, then set this parameter to TRUE for the new value to be added to the existing value. If you set this parameter to FALSE, then the existing value will be replaced by the new value.

Returns:

True, if the action succeeds. Otherwise, False.

Level

All levels.

Example

WsSetHeader("Content-Type", "text/xml", true)