mirror of
https://github.com/curl/curl.git
synced 2026-07-29 06:33:07 +03:00
Now we're setting a default domain for received cookies so that we can
properly match those cookies in subsequent requests
This commit is contained in:
parent
9efdb68035
commit
598e8dfbfb
3 changed files with 18 additions and 7 deletions
|
|
@ -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 *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue