HttpRequestExtensionsGetEffectiveUrl Method (HttpRequestBase) |
Returns effective URL with correct port number based on
IsSSL property for
Url property.
Namespace: CMS.AspNet.PlatformAssembly: CMS.AspNet.Platform (in CMS.AspNet.Platform.dll) Version: 13.0.131
Syntax public static Uri GetEffectiveUrl(
this HttpRequestBase request
)
Parameters
- request
- Type: System.WebHttpRequestBase
HttpRequestBase object.
Return Value
Type:
UriUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
HttpRequestBase. 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