check if connection is HTTPS or is HTTP but with ssloffload enabled on a secure page

Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static bool IsSecureConnectionOrSslOffload(
	HttpRequest request
)
Visual Basic
Public Shared Function IsSecureConnectionOrSslOffload ( 
	request As HttpRequest
) As Boolean

Parameters

request
Type: System.Web..::..HttpRequest
current request

Return Value

true if HTTPS or if HTTP with an SSL offload header value, false otherwise

See Also