Added overloaded createRequest method that takes an HttpContext instance

An HttpContext is needed when doing for example preemptive digest authentication with HTTP Client.