Added support for proxy in ssl connections