wxCurlBase::SetCurlHandleToDefaults calls ResetHandle which does a curl_easy_reset(). So any option set manually via wxCurlBase::SetOpt is cleared before making the actual request.
You shouldn't do that.. reusing a wxCurlBase instance for multiple (unrelated) requests is a bad idea anyway and doesn't need to be supported.