From f56798b7f18ffaa22896db08d8e7b0ba7858bc08 Mon Sep 17 00:00:00 2001 From: Toni Gundogdu Date: Sat, 31 Aug 2013 15:47:16 +0300 Subject: [PATCH] API: Add QUVI_OPTION_ALLOW_COOKIES Signed-off-by: Toni Gundogdu --- src/quvi-0.9/quvi/qoption.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/quvi-0.9/quvi/qoption.h b/src/quvi-0.9/quvi/qoption.h index 294259c..92750c1 100644 --- a/src/quvi-0.9/quvi/qoption.h +++ b/src/quvi-0.9/quvi/qoption.h @@ -31,7 +31,22 @@ typedef enum QUVI_OPTION_CALLBACK_STATUS, /** Default: None */ QUVI_OPTION_CALLBACK_STATUS_USERDATA, - /** Identify as the user-agent to the HTTP servers + /** Enable cookies for libcurl handle. + * Default: QUVI_FALSE. When enabled (QUVI_TRUE), libcurl will + * parse the received cookies and use them in the subsequent HTTP + * requests. + * @note + * When disabled, quvi.http.cookie (of the quvi-object(7)) is also + * disabled + * @sa + * http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTCOOKIEFILE + * @sa + * http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTCOOKIELIST + * @sa + * http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTCOOKIEJAR + */ + QUVI_OPTION_ALLOW_COOKIES, + /** Identify as the user-agent to the HTTP servers. * Default: "Mozilla/5.0". * @note * libquvi scripts may override this setting at any time. The -- 2.11.4.GIT