Issue #28: Add some functions to get url connection for https