Herzlich willkommen im Archiv vom ABAKUS Online Marketing Forum
Du befindest Dich im Archiv vom ABAKUS Online Marketing Forum. Hier kannst Du Dich für das Forum mit den aktuellen Beiträgen registrieren.
Code: Alles auswählen
CURLSH * share_handle = curl_share_init();
curl_share_setopt(share_handle, CURLSHOPT_SHARE, CURL_LOCK_DATA_COOKIE);
curl_share_setopt(share_handle, CURLSHOPT_USERDATA, &share_mutex);
curl_share_setopt(share_handle, CURLSHOPT_LOCKFUNC, lock);
curl_share_setopt(share_handle, CURLSHOPT_UNLOCKFUNC, unlock);
CURL *eh1 = curl_easy_init();
CURL *eh2 = curl_easy_init();
curl_easy_setopt(eh1, CURLOPT_SHARE, share_handle);
curl_easy_setopt(eh2, CURLOPT_SHARE, share_handle);
CURLSHOPT_SHARE
The parameter specifies a type of data that should be shared. This may be set to one of the values described below.
CURL_LOCK_DATA_COOKIE
Cookie data will be shared across the easy handles using this shared object.