Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / HttpContextHelper Class / SafeGetRequest Method / SafeGetRequest() Method
Version
SafeGetRequest() Method
Gets the HttpRequest associated with the current HttpContext.
Syntax
public static HttpRequest SafeGetRequest()

Return Value

The HttpRequest object, or null if it is not available in this context.
Remarks
In II7 in integrated pipeline mode, accessing request will throw an exception during application level events (like AbleCommerceHttpModule.Init).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also