fix for SNI

changed httpClient to HttpsUrlConnection to support SNI