Moved from HttpUrlConnection to HttpsUrlConnection