Introduce Strategy pattern to switch Http and Https for accessing server