Lines Matching refs:path
39 char *lineptr, const char *domain, const char *path,
57 char *host, char *path, bool secure);
59 For a given host and path, return a linked list of cookies that
69 Set-cookie: PRODUCTINFO=webxpress; domain=.fidelity.com; path=/; secure
71 domain=.fidelity.com; path=/ftgw; secure
73 domain=.fidelity.com; path=/; secure
75 domain=.fidelity.com; path=/; secure
77 domain=.fidelity.com; path=/; secure
79 domain=.fidelity.com; path=/; secure
82 13-Jun-1988 03:04:55 GMT; domain=.fidelity.com; path=/; secure
116 free(co->path);
153 * matching cookie path and url path
187 * 4. Output the characters of the uri-path from the first character up
189 * but URL path /hoge?fuga=xxx means /hoge/index.cgi?fuga=xxx in some site
191 * Ignore this algorithm because /hoge is uri path for this case
192 * (uri path is not /).
208 /* The cookie-path and the uri-path are identical. */
292 * cookie path sanitize
301 /* some stupid site sends path attribute with '"'. */
313 /* Let cookie-path be the default-path. */
487 const char *path, /* full path used when this cookie is set,
488 used to get default path for the cookie
653 else if((nlen == 4) && strncasecompare("path", namep, 4)) {
654 strstore(&co->path, valuep, vlen);
655 if(!co->path) {
660 co->spath = sanitize_cookie_path(co->path);
805 if(!badcookie && !co->path && path) {
807 * No path was given in the header line, set the default. Note that the
808 * passed-in path to this function MAY have a '?' and following part that
809 * MUST NOT be stored as part of the path.
811 char *queryp = strchr(path, '?');
814 * queryp is where the interesting part of the path ends, so now we
819 endslash = strrchr(path, '/');
821 endslash = memrchr(path, '/', (queryp - path));
823 size_t pathlen = (endslash-path + 1); /* include end slash */
824 co->path = Curl_memdup0(path, pathlen);
825 if(co->path) {
826 co->spath = sanitize_cookie_path(co->path);
906 /* The file format allows the path field to remain not filled in */
908 /* only if the path doesn't look like a boolean option! */
909 co->path = strdup(ptr);
910 if(!co->path)
913 co->spath = sanitize_cookie_path(co->path);
920 /* this doesn't look like a path, make one up! */
921 co->path = strdup("/");
922 if(!co->path)
990 * The __Host- prefix requires the cookie to be secure, have a "/" path
993 if(co->secure && co->path && strcmp(co->path, "/") == 0 && !co->tailmatch)
1014 * domain and path as this.
1079 * For an existing cookie "a" with path "/login", refuse a new
1080 * cookie "a" with for example path "/login/en", while the path
1152 free(clist->path);
1163 infof(data, "%s cookie %s=\"%s\" for domain %s, path %s, "
1166 co->domain, co->path, co->expires);
1294 * Helper function to sort cookies such that the longest path gets before the
1295 * shorter path. Path, domain and name lengths are considered in that order,
1305 /* 1 - compare cookie path lengths */
1306 l1 = c1->path ? strlen(c1->path) : 0;
1307 l2 = c2->path ? strlen(c2->path) : 0;
1357 CLONE(path);
1378 * For a given host and path, return a linked list of cookies that the client
1386 const char *host, const char *path,
1422 * now check the left part of the path with the cookies path
1425 if(!co->spath || pathmatch(co->spath, path) ) {
1458 * once, the longest specified path version comes first. To make this
1459 * the swiftest way, we just sort them all based on path length.
1474 /* now sort the cookie pointers in path length order */
1596 "%s\t" /* path */
1609 co->path?co->path:"/",