Click or drag to resize
RequestHelperGetHeader Method
Returns the value of specified HTTP header or default value if header is not defined.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax
C#
public static string GetHeader(
	string name,
	string defaultValue
)

Parameters

name
Type: SystemString
HTTP header name
defaultValue
Type: SystemString
Default value to use if header not found

Return Value

Type: String
Header value or default value if not found
See Also