Beispiel #1
0
void setCookies(Document* document, const KURL& url, const String& value)
{
    //wke++++++
    CURL* handle = curlHandle(document);
    cookieJar.set(handle, url, value);
    //wke++++++
}
Beispiel #2
0
 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;
 };