Modified ClientHttp to allow an override for the socket, and passing in of the session handle