Lines Matching refs:domain
37 const char *domain, const char *path);
66 Set-cookie: PRODUCTINFO=webxpress; domain=.fidelity.com; path=/; secure
68 domain=.fidelity.com; path=/ftgw; secure
70 domain=.fidelity.com; path=/; secure
72 domain=.fidelity.com; path=/; secure
74 domain=.fidelity.com; path=/; secure
76 domain=.fidelity.com; path=/; secure
79 13-Jun-1988 03:04:55 GMT; domain=.fidelity.com; path=/; secure
106 free(co->domain);
128 RFC6265 4.1.2.3. The Domain Attribute says:
129 For example, if the value of the Domain attribute is
327 static bool isip(const char *domain)
334 if(Curl_inet_pton(AF_INET, domain, &addr)
336 || Curl_inet_pton(AF_INET6, domain, &addr6)
339 /* domain name given as IP address */
368 const char *domain, /* default domain */
467 else if(Curl_raw_equal("domain", name)) {
471 /* Now, we make sure that our host is within the given domain,
472 or the given domain is not valid and thus cannot be set. */
477 is_ip = isip(domain ? domain : whatptr);
482 domain=":";
484 if(!domain
485 || (is_ip && !strcmp(whatptr, domain))
486 || (!is_ip && tailmatch(whatptr, domain))) {
487 strstore(&co->domain, whatptr);
488 if(!co->domain) {
493 co->tailmatch=TRUE; /* we always do that if the domain name was
497 /* we did not get a tailmatch and then the attempted set domain
498 is not a domain to which the current host belongs. Mark as
501 infof(data, "skipped cookie with bad tailmatch domain: %s\n",
592 if(!badcookie && !co->domain) {
593 if(domain) {
594 /* no domain was given in the header line, set the default */
595 co->domain=strdup(domain);
596 if(!co->domain)
648 marked with httpOnly after the domain name are not accessible
682 co->domain = strdup(ptr);
683 if(!co->domain)
691 domain can access the variable. This value is set automatically by
692 the browser, depending on the value you set for the domain.
695 .domain.com and to false when the domain is complete www.domain.com
774 the same domain and path as this */
785 if(clist->domain && co->domain) {
786 if(Curl_raw_equal(clist->domain, co->domain))
790 else if(!clist->domain && !co->domain)
827 free(clist->domain);
854 infof(data, "%s cookie %s=\"%s\" for domain %s, path %s, "
857 co->domain, co->path, co->expires);
977 /* 2 - compare cookie domain lengths */
978 l1 = c1->domain ? strlen(c1->domain) : 0;
979 l2 = c2->domain ? strlen(c2->domain) : 0;
1033 /* now check if the domain is correct */
1034 if(!co->domain ||
1035 (co->tailmatch && !is_ip && tailmatch(co->domain, host)) ||
1036 ((!co->tailmatch || is_ip) && Curl_raw_equal(host, co->domain)) ) {
1037 /* the right part of the host matches the domain stuff in the
1216 "%s%s\t" /* domain */
1226 (co->tailmatch && co->domain && co->domain[0] != '.')? ".":"",
1227 co->domain?co->domain:"unknown",
1279 if(!co->domain)
1314 if(!c->domain)