update lib.get_url() function to work with https