Kentico 12 Service Pack API Reference
Kentico 12 Service Pack API Reference
Namespaces
CMS Namespaces
CMS.AspNet Namespaces
CMS.AspNet.Platform
HttpRequestExtensions Class
HttpRequestExtensions Methods
GetEffectiveUrl Method
GetEffectiveUrl Method (HttpRequest)
GetEffectiveUrl Method (HttpRequestBase)
HttpRequestExtensions
GetEffectiveUrl Method (HttpRequest)
Returns effective URL with correct port number based on
IsSSL
property for
Url
property.
Namespace:
CMS.AspNet.Platform
Assembly:
CMS.AspNet.Platform (in CMS.AspNet.Platform.dll) Version: 12.0.0
Syntax
C#
Copy
public
static
Uri
GetEffectiveUrl
(
this
HttpRequest
request
)
Parameters
request
Type:
System.Web
HttpRequest
HttpRequest
object.
Return Value
Type:
Uri
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
HttpRequest
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
Exceptions
Exception
Condition
ArgumentNullException
request
Remarks
When SSL offloading proxy is used
Url
does not contain valid port and scheme.
See Also
Reference
HttpRequestExtensions Class
GetEffectiveUrl Overload
CMS.AspNet.Platform Namespace
Copyright (c) 2019 Kentico Software
Send comments on this topic to
support@kentico.com