diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-08-17 08:55:43 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-08-17 08:55:43 +0000 |
commit | a676c18502d5ec3128db11accf04d6de3f9be949 (patch) | |
tree | 71335eb19d493e7322337c3e66d19f7f5e146ee2 /lib/cookie.h | |
parent | 362912ff838d09a57e21827a3c148a52fca3af03 (diff) | |
download | curl-a676c18502d5ec3128db11accf04d6de3f9be949.tar.gz |
- Jeff Pohlmeyer found out that if you ask libcurl to load a cookiefile (with
CURLOPT_COOKIEFILE), add a cookie (with CURLOPT_COOKIELIST), tell it to
write the result to a given cookie jar and then never actually call
curl_easy_perform() - the given file(s) to read was never read but the
output file was written and thus it caused a "funny" result.
- While doing some tests for the bug above, I noticed that Firefox generates
large numbers (for the expire time) in the cookies.txt file and libcurl
didn't treat them properly. Now it does.
Diffstat (limited to 'lib/cookie.h')
-rw-r--r-- | lib/cookie.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/cookie.h b/lib/cookie.h index aed9f73f7..f5fdb6784 100644 --- a/lib/cookie.h +++ b/lib/cookie.h @@ -38,7 +38,7 @@ struct Cookie { char *value; /* name = <this> */ char *path; /* path = <this> */ char *domain; /* domain = <this> */ - long expires; /* expires = <this> */ + curl_off_t expires; /* expires = <this> */ char *expirestr; /* the plain text version */ bool tailmatch; /* weather we do tail-matchning of the domain name */ @@ -94,8 +94,10 @@ int Curl_cookie_output(struct CookieInfo *, char *); #if defined(CURL_DISABLE_HTTP) || defined(CURL_DISABLE_COOKIES) #define Curl_cookie_list(x) NULL +#define Curl_cookie_loadfiles(x) #else struct curl_slist *Curl_cookie_list(struct SessionHandle *data); +void Curl_cookie_loadfiles(struct SessionHandle *data); #endif #endif |