Https support

New pull request against https_support branch, as requested! Thanks for your time :)