setopt for CurlClient