handle http/https dynamically on client.