void setCookies(Document* document, const KURL& url, const String& value) { //wke++++++ CURL* handle = curlHandle(document); cookieJar.set(handle, url, value); //wke++++++ }
std::shared_ptr<CURL> createCurlHandle() { std::shared_ptr<CURL> curlHandle(curl_easy_init(), curl_easy_cleanup); if (curlHandle.get() == nullptr) { throw Exception(__FILE__, __LINE__, __func__, "curl_easy_init() failure"); } return curlHandle; };