use dynamic url for https connections
Merge pull request #1 from jordangarside/patch-1

use dynamic url for https connections