D:/opendownloadmanager/ODM-1.x/InetFile/cURL_lib/cookie.c File Reference

#include "setup.h"
#include <stdlib.h>
#include <string.h>
#include <curl/mprintf.h>
#include "urldata.h"
#include "cookie.h"
#include "strequal.h"
#include "strtok.h"
#include "sendf.h"
#include "memory.h"
#include "share.h"
#include "strtoofft.h"

Go to the source code of this file.

Defines

#define _MPRINTF_REPLACE

Functions

static void freecookie (struct Cookie *co)
static bool tailmatch (const char *little, const char *bigone)
void Curl_cookie_loadfiles (struct SessionHandle *data)
struct CookieCurl_cookie_add (struct SessionHandle *data, struct CookieInfo *c, bool httpheader, char *lineptr, char *domain, char *path)
struct CookieInfoCurl_cookie_init (struct SessionHandle *data, char *file, struct CookieInfo *inc, bool newsession)
struct CookieCurl_cookie_getlist (struct CookieInfo *c, char *host, char *path, bool secure)
void Curl_cookie_clearall (struct CookieInfo *cookies)
void Curl_cookie_freelist (struct Cookie *co)
void Curl_cookie_clearsess (struct CookieInfo *cookies)
void Curl_cookie_cleanup (struct CookieInfo *c)
static char * get_netscape_format (const struct Cookie *co)
int Curl_cookie_output (struct CookieInfo *c, char *dumphere)
struct curl_slistCurl_cookie_list (struct SessionHandle *data)


Define Documentation

#define _MPRINTF_REPLACE

Definition at line 88 of file cookie.c.


Function Documentation

struct Cookie* Curl_cookie_add ( struct SessionHandle data,
struct CookieInfo c,
bool  httpheader,
char *  lineptr,
char *  domain,
char *  path 
) [read]

void Curl_cookie_cleanup ( struct CookieInfo c  ) 

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 co  ) 

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 c,
char *  host,
char *  path,
bool  secure 
) [read]

struct CookieInfo* Curl_cookie_init ( struct SessionHandle data,
char *  file,
struct CookieInfo inc,
bool  newsession 
) [read]

struct curl_slist* Curl_cookie_list ( struct SessionHandle data  )  [read]

void Curl_cookie_loadfiles ( struct SessionHandle data  ) 

int Curl_cookie_output ( struct CookieInfo c,
char *  dumphere 
)

static void freecookie ( struct Cookie co  )  [static]

static char* get_netscape_format ( const struct Cookie co  )  [static]

static bool tailmatch ( const char *  little,
const char *  bigone 
) [static]

Definition at line 126 of file cookie.c.

References FALSE, and strequal.

Referenced by Curl_cookie_add(), and Curl_cookie_getlist().


Generated on Sun May 25 00:20:05 2008 by  doxygen 1.5.6