diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-09-26 07:08:29 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-09-26 07:08:29 +0000 |
commit | 598e8dfbfbf3ed8db75cfd574b05904ecb486c34 (patch) | |
tree | 8bad809c26fb848613988dd10191bc9626546428 /lib/cookie.h | |
parent | 9efdb68035b84dda158ca786d78c56a11d46c9fa (diff) | |
download | gnurl-598e8dfbfbf3ed8db75cfd574b05904ecb486c34.tar.gz gnurl-598e8dfbfbf3ed8db75cfd574b05904ecb486c34.tar.bz2 gnurl-598e8dfbfbf3ed8db75cfd574b05904ecb486c34.zip |
Now we're setting a default domain for received cookies so that we can
properly match those cookies in subsequent requests
Diffstat (limited to 'lib/cookie.h')
-rw-r--r-- | lib/cookie.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/cookie.h b/lib/cookie.h index 34b6fd56a..a00530bda 100644 --- a/lib/cookie.h +++ b/lib/cookie.h @@ -68,7 +68,13 @@ struct CookieInfo { #define MAX_NAME 256 #define MAX_NAME_TXT "255" -struct Cookie *Curl_cookie_add(struct CookieInfo *, bool, char *); +/* + * Add a cookie to the internal list of cookies. The domain argument is only + * used if the header boolean is TRUE. + */ +struct Cookie *Curl_cookie_add(struct CookieInfo *, bool header, char *line, + char *domain); + struct CookieInfo *Curl_cookie_init(char *, struct CookieInfo *); struct Cookie *Curl_cookie_getlist(struct CookieInfo *, char *, char *, bool); void Curl_cookie_freelist(struct Cookie *); |