From b10a838a7add072b88ab87c203361d655caa077b Mon Sep 17 00:00:00 2001 From: Yousuke Kimoto Date: Thu, 25 Sep 2014 16:25:52 +0200 Subject: CURLOPT_COOKIELIST: Added "RELOAD" command --- lib/url.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/url.c') diff --git a/lib/url.c b/lib/url.c index b2b68378a..69a75e310 100644 --- a/lib/url.c +++ b/lib/url.c @@ -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 */ -- cgit v1.2.3