var context = new HttpContextWrapper(HttpContext.Current); HttpRequestBase request = context.Request;