#include <stdio.h>#include <curl/curl.h>Go to the source code of this file.
Classes | |
| struct | Cookie |
| struct | CookieInfo |
Defines | |
| #define | MAX_COOKIE_LINE 5000 |
| #define | MAX_COOKIE_LINE_TXT "4999" |
| #define | MAX_NAME 1024 |
| #define | MAX_NAME_TXT "1023" |
Functions | |
| struct Cookie * | Curl_cookie_add (struct SessionHandle *data, struct CookieInfo *, bool header, char *line, char *domain, char *path) |
| struct CookieInfo * | Curl_cookie_init (struct SessionHandle *data, char *, struct CookieInfo *, bool) |
| struct Cookie * | Curl_cookie_getlist (struct CookieInfo *, char *, char *, bool) |
| void | Curl_cookie_freelist (struct Cookie *) |
| void | Curl_cookie_clearall (struct CookieInfo *cookies) |
| void | Curl_cookie_clearsess (struct CookieInfo *cookies) |
| void | Curl_cookie_cleanup (struct CookieInfo *) |
| int | Curl_cookie_output (struct CookieInfo *, char *) |
| struct curl_slist * | Curl_cookie_list (struct SessionHandle *data) |
| void | Curl_cookie_loadfiles (struct SessionHandle *data) |
| #define MAX_COOKIE_LINE 5000 |
| #define MAX_COOKIE_LINE_TXT "4999" |
| #define MAX_NAME 1024 |
| #define MAX_NAME_TXT "1023" |
| struct Cookie* Curl_cookie_add | ( | struct SessionHandle * | data, | |
| struct CookieInfo * | , | |||
| bool | header, | |||
| char * | line, | |||
| char * | domain, | |||
| char * | path | |||
| ) | [read] |
Definition at line 167 of file cookie.c.
References calloc, CookieInfo::cookies, curl_getdate(), curlx_strtoofft, Cookie::domain, Cookie::expires, Cookie::expirestr, FALSE, free, freecookie(), infof, ISBLANK, Cookie::livecookie, malloc, MAX_COOKIE_LINE, MAX_COOKIE_LINE_TXT, MAX_NAME, MAX_NAME_TXT, Cookie::maxage, Cookie::name, CookieInfo::newsession, Cookie::next, NULL, CookieInfo::numcookies, Cookie::path, CookieInfo::running, Cookie::secure, strdup, strequal, strtok_r, Cookie::tailmatch, tailmatch(), TRUE, Cookie::value, and Cookie::version.
Referenced by Curl_cookie_init(), Curl_readwrite(), and Curl_setopt().
| void Curl_cookie_cleanup | ( | struct CookieInfo * | ) |
Definition at line 886 of file cookie.c.
References CookieInfo::cookies, CookieInfo::filename, free, freecookie(), and Cookie::next.
Referenced by Curl_close(), Curl_setopt(), curl_share_cleanup(), and curl_share_setopt().
| void Curl_cookie_clearall | ( | struct CookieInfo * | cookies | ) |
Definition at line 810 of file cookie.c.
References CookieInfo::cookies, Curl_cookie_freelist(), NULL, and CookieInfo::numcookies.
Referenced by Curl_setopt().
| void Curl_cookie_clearsess | ( | struct CookieInfo * | cookies | ) |
Definition at line 848 of file cookie.c.
References CookieInfo::cookies, Cookie::expires, free, Cookie::next, NULL, and CookieInfo::numcookies.
Referenced by Curl_setopt().
| void Curl_cookie_freelist | ( | struct Cookie * | ) |
Definition at line 827 of file cookie.c.
References free, and Cookie::next.
Referenced by Curl_cookie_clearall(), and Curl_http().
| struct Cookie* Curl_cookie_getlist | ( | struct CookieInfo * | , | |
| char * | , | |||
| char * | , | |||
| bool | ||||
| ) | [read] |
Definition at line 736 of file cookie.c.
References CookieInfo::cookies, Cookie::domain, Cookie::expires, free, malloc, Cookie::next, NULL, Cookie::path, Cookie::secure, strequal, tailmatch(), Cookie::tailmatch, and TRUE.
Referenced by Curl_http().
| struct CookieInfo* Curl_cookie_init | ( | struct SessionHandle * | data, | |
| char * | , | |||
| struct CookieInfo * | , | |||
| bool | ||||
| ) | [read] |
Definition at line 657 of file cookie.c.
References c, calloc, checkprefix, Curl_cookie_add(), FALSE, CookieInfo::filename, free, ISBLANK, malloc, MAX_COOKIE_LINE, CookieInfo::newsession, NULL, CookieInfo::running, strdup, strequal, and TRUE.
Referenced by Curl_cookie_loadfiles(), curl_easy_duphandle(), Curl_setopt(), and curl_share_setopt().
| struct curl_slist* Curl_cookie_list | ( | struct SessionHandle * | data | ) | [read] |
Definition at line 990 of file cookie.c.
References c, CookieInfo::cookies, SessionHandle::cookies, curl_slist_append(), curl_slist_free_all(), free, get_netscape_format(), Cookie::next, NULL, and CookieInfo::numcookies.
Referenced by Curl_getinfo().
| void Curl_cookie_loadfiles | ( | struct SessionHandle * | data | ) |
Definition at line 140 of file cookie.c.
References SessionHandle::change, DynamicStatic::cookielist, SessionHandle::cookies, UserDefined::cookiesession, Curl_cookie_init(), CURL_LOCK_ACCESS_SINGLE, CURL_LOCK_DATA_COOKIE, Curl_share_lock(), Curl_share_unlock(), curl_slist_free_all(), curl_slist::data, curl_slist::next, NULL, and SessionHandle::set.
Referenced by Curl_close(), and Curl_pretransfer().
| int Curl_cookie_output | ( | struct CookieInfo * | , | |
| char * | ||||
| ) |
Definition at line 940 of file cookie.c.
References CookieInfo::cookies, FALSE, free, get_netscape_format(), Cookie::next, NULL, CookieInfo::numcookies, strequal, and TRUE.
Referenced by Curl_close().
1.5.6