CURLOPT_COOKIELIST: Added "RELOAD" command

This commit is contained in:
Yousuke Kimoto
2014-09-25 16:25:52 +02:00
committed by Daniel Stenberg
parent 9ee8efc63b
commit b10a838a7a
4 changed files with 93 additions and 8 deletions

View File

@@ -1191,6 +1191,11 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
/* flush cookies to file, takes care of the locking */
Curl_flush_cookies(data, 0);
}
else if(Curl_raw_equal(argptr, "RELOAD")) {
/* reload cookies from file */
Curl_cookie_loadfiles(data);
break;
}
else {
if(!data->cookies)
/* if cookie engine was not running, activate it */