Added HTTPS support.

Added HTTPS support.
Merge pull request #2 from dongmaster/patch-2

Added HTTPS support.