Added https support
Merge pull request #302 from LeeroyDing/https

Added https support