Added overloaded createRequest method that takes an HttpContext instance