Dirk Manske's patch that introduces cookie support to the share interface.

This commit is contained in:
Daniel Stenberg
2003-08-04 15:02:42 +00:00
parent f72ba7f79d
commit 41ae97e710
6 changed files with 82 additions and 28 deletions

View File

@@ -853,10 +853,12 @@ CURLcode Curl_http(struct connectdata *conn)
}
if(data->cookies) {
Curl_share_lock(data, CURL_LOCK_DATA_COOKIE, CURL_LOCK_ACCESS_SINGLE);
co = Curl_cookie_getlist(data->cookies,
conn->allocptr.cookiehost?
conn->allocptr.cookiehost:host, ppath,
(bool)(conn->protocol&PROT_HTTPS?TRUE:FALSE));
Curl_share_unlock(data, CURL_LOCK_DATA_COOKIE);
}
if (conn->bits.httpproxy &&