Modified to support only https.