Added option to only use the secure protocol https.