added proper ssl support to the http client