added --secure to force check via secure connection only, the default is check via secure then fall back to insecure connection.