Home
last modified time | relevance | path

Searched refs:cookies (Results 1 - 25 of 38) sorted by relevance

12

/third_party/python/Lib/test/
H A Dtest_http_cookies.py1 # Simple test suite for http/cookies.py
6 from http import cookies namespace
24 # Check illegal cookies that have an '=' char in an unquoted value
54 C = cookies.SimpleCookie()
62 C = cookies.SimpleCookie()
89 C = cookies.SimpleCookie()
96 C = cookies.SimpleCookie('Customer="WILE_E_COYOTE"')
102 C = cookies.SimpleCookie()
106 C = cookies.SimpleCookie()
112 C = cookies
[all...]
H A Dtest_http_cookiejar.py360 # cookies with no value should be saved and loaded consistently
417 # Now, clear cookies and re-save:
441 # Invalid contents of cookies file (eg. bad magic string)
461 # Netscape cookies work the same as RFC 2965 with regard to port.
463 # If turn RFC 2965 handling off, Set-Cookie2 cookies should not clobber
464 # Set-Cookie cookies.
465 # Cookie2 should be sent if *any* cookies are not V1 (ie. V0 OR V2 etc.).
555 # cookies unchanged apart from lost info re. whether path was specified
565 # RFC 2109 cookies are handled as RFC 2965 or Netscape cookies,
[all...]
/third_party/curl/lib/
H A Dcookie.c35 called before any cookies are set.
59 For a given host and path, return a linked list of cookies that
64 It shall only return cookies that haven't expired.
67 Example set of cookies:
327 * Load cookies from all given cookie files (CURLOPT_COOKIEFILE).
338 Curl_cookie_init(data, list->data, data->cookies, in Curl_cookie_loadfiles()
347 data->cookies = newcookies; in Curl_cookie_loadfiles()
374 * Remove expired cookies from the hash by inspecting the expires timestamp on
377 * more cookies expire, then processing will exit early in case this timestamp
380 static void remove_expired(struct CookieInfo *cookies) in remove_expired() argument
1500 Curl_cookie_clearall(struct CookieInfo *cookies) Curl_cookie_clearall() argument
1532 Curl_cookie_clearsess(struct CookieInfo *cookies) Curl_cookie_clearsess() argument
[all...]
H A Dshare.c84 if(!share->cookies) { in curl_share_setopt()
85 share->cookies = Curl_cookie_init(NULL, NULL, NULL, TRUE); in curl_share_setopt()
86 if(!share->cookies) in curl_share_setopt()
149 if(share->cookies) { in curl_share_setopt()
150 Curl_cookie_cleanup(share->cookies); in curl_share_setopt()
151 share->cookies = NULL; in curl_share_setopt()
231 Curl_cookie_cleanup(share->cookies); in curl_share_cleanup()
H A Dcookie.h56 /* linked list of cookies we know of */
57 struct Cookie *cookies[COOKIE_HASH_SIZE]; member
59 int numcookies; /* number of cookies in the "jar" */
62 bool newsession; /* new session, discard session cookies on load */
65 /* The maximum sizes we accept for cookies. RFC 6265 section 6.1 says
76 /** Limits for INCOMING cookies **/
83 cookies are ignored. */
91 /** Limits for OUTGOING cookies **/
98 /* Maximum number of cookies libcurl will send in a single request, even if
99 there might be more cookies tha
[all...]
H A Dsetopt.c777 if(!data->share || !data->share->cookies) { in Curl_vsetopt()
778 /* throw away all existing cookies if this isn't a shared cookie in Curl_vsetopt()
780 Curl_cookie_clearall(data->cookies); in Curl_vsetopt()
781 Curl_cookie_cleanup(data->cookies); in Curl_vsetopt()
784 data->cookies = NULL; in Curl_vsetopt()
790 * Set cookie file name to dump all cookies to when we're done. in Curl_vsetopt()
801 newcookies = Curl_cookie_init(data, NULL, data->cookies, in Curl_vsetopt()
805 data->cookies = newcookies; in Curl_vsetopt()
812 * prevent the forthcoming read-cookies-from-file actions to accept in Curl_vsetopt()
813 * cookies tha in Curl_vsetopt()
[all...]
H A Dshare.h49 struct CookieInfo *cookies; member
H A Deasy.c922 if(data->cookies && data->state.cookie_engine) { in curl_easy_duphandle()
923 /* If cookies are enabled in the parent handle, we enable them in curl_easy_duphandle()
925 outcurl->cookies = Curl_cookie_init(outcurl, NULL, outcurl->cookies, in curl_easy_duphandle()
927 if(!outcurl->cookies) in curl_easy_duphandle()
1022 free(outcurl->cookies); in curl_easy_duphandle()
/third_party/node/deps/undici/src/lib/fetch/
H A Dheaders.js125 cookies = null
131 this.cookies = init.cookies === null ? null : [...init.cookies]
151 this.cookies = null
175 this.cookies ??= []
176 this.cookies.push(value)
186 this.cookies = [value]
203 this.cookies = null
418 const list = this[kHeadersList].cookies
[all...]
/third_party/curl/docs/examples/
H A Dcookie_interface.c25 * Import and export cookies with COOKIELIST.
41 struct curl_slist *cookies; in print_cookies() local
46 res = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies); in print_cookies()
52 nc = cookies; in print_cookies()
62 curl_slist_free_all(cookies); in print_cookies()
87 printf("Erasing curl's knowledge of cookies!\n"); in main()
112 cookies will not be exported either. For more information refer to the in main()
/third_party/node/test/parallel/
H A Dtest-http-proxy.js28 const cookies = [
34 'set-cookie': cookies,
55 assert.deepStrictEqual(proxy_res.headers['set-cookie'], cookies);
86 assert.deepStrictEqual(res.headers['set-cookie'], cookies);
H A Dtest-http-mutable-headers.js37 const cookies = [
92 res.setHeader('set-cookie', cookies);
102 'set-cookie': cookies,
189 assert.deepStrictEqual(cookies, response.headers['set-cookie']);
/third_party/node/deps/undici/src/lib/cookies/
H A Dindex.js80 const cookies = getHeadersList(headers).cookies
82 if (!cookies) {
86 // In older versions of undici, cookies is a list of name:value.
87 return cookies.map((pair) => parseSetCookie(Array.isArray(pair) ? pair[1] : pair))
/third_party/ffmpeg/libavformat/
H A Dhttp.c102 char *cookies; ///< holds newline (\n) delimited Set-Cookie header field values (without the "Set-Cookie: " field name) member
103 /* A dictionary containing cookies keyed by cookie name */
158 { "cookies", "set cookies to be sent in applicable future requests, use newline delimited Set-Cookie HTTP field value syntax", OFFSET(cookies), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, D },
960 static int parse_cookie(HTTPContext *s, const char *p, AVDictionary **cookies) in parse_cookie() argument
990 e2 = av_dict_get(*cookies, cookie_entry->key, NULL, 0); in parse_cookie()
1017 av_dict_set(cookies, name, eql, AV_DICT_DONT_STRDUP_KEY); in parse_cookie()
1022 static int cookie_string(AVDictionary *dict, char **cookies) in cookie_string() argument
1027 // determine how much memory is needed for the cookies strin in cookie_string()
1237 get_cookies(HTTPContext *s, char **cookies, const char *path, const char *domain) get_cookies() argument
1488 char *cookies = NULL; http_connect() local
[all...]
/third_party/nghttp2/src/
H A Dshrpx_downstream_test.cc109 HeaderRefs cookies; in test_downstream_crumble_request_cookie() local
110 std::transform(std::begin(nva), std::end(nva), std::back_inserter(cookies), in test_downstream_crumble_request_cookie()
124 CU_ASSERT(ans == cookies); in test_downstream_crumble_request_cookie()
125 CU_ASSERT(cookies[0].no_index); in test_downstream_crumble_request_cookie()
126 CU_ASSERT(cookies[1].no_index); in test_downstream_crumble_request_cookie()
127 CU_ASSERT(cookies[2].no_index); in test_downstream_crumble_request_cookie()
/third_party/curl/tests/libtest/
H A Dlib506.c185 struct curl_slist *cookies = NULL; in test() local
281 /* fetch a another one and save cookies */ in test()
310 /* load cookies */ in test()
331 code = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies); in test()
337 printf("loaded cookies:\n"); in test()
338 if(!cookies) { in test()
339 fprintf(stderr, " reloading cookies from '%s' failed\n", JAR); in test()
344 next_cookie = cookies; in test()
350 curl_slist_free_all(cookies); in test()
/third_party/python/Lib/http/
H A Dcookiejar.py478 Currently, this is also used for parsing RFC 2109 cookies.
482 # RFC 2109 attrs (may turn up in Netscape cookies, too)
746 This class represents both Netscape and RFC 2965 cookies.
842 """Defines which cookies get accepted from and returned to server.
844 May also modify cookies, though this is probably a bad idea.
847 and RFC 2965 cookies -- override that if you want a customized policy.
853 Currently, pre-expired cookies never get this far -- the CookieJar
854 class deletes such cookies itself.
864 """Return false if cookies should not be returned, given cookie domain.
869 """Return false if cookies shoul
[all...]
/third_party/skia/third_party/externals/tint/tools/src/gerrit/
H A Dgerrit.go43 if cookies, err := ioutil.ReadFile(cookiesFile); err == nil {
45 match := re.FindStringSubmatch(string(cookies))
/third_party/libbpf/src/
H A Dusdt.c277 * We don't need IP-to-ID mapping if we can use BPF cookies. in usdt_manager_new()
835 * but if BPF cookies are not used we need to remove entry in bpf_link_usdt_detach()
966 __u64 *cookies = NULL; in usdt_manager_attach_usdt() local
1015 cookies = calloc(target_cnt, sizeof(*cookies)); in usdt_manager_attach_usdt()
1018 if (!offsets || !ref_ctr_offsets || !cookies) { in usdt_manager_attach_usdt()
1071 cookies[i] = spec_id; in usdt_manager_attach_usdt()
1094 .cookies = cookies, in usdt_manager_attach_usdt()
1109 free(cookies); in usdt_manager_attach_usdt()
[all...]
H A Dbpf.h393 const __u64 *cookies; member
401 const __u64 *cookies; member
/third_party/curl/src/
H A Dtool_operate.c1831 if(config->cookies) { in single_transfer()
1832 struct curlx_dynbuf cookies; in single_transfer() local
1837 curlx_dyn_init(&cookies, MAX_COOKIE_LINE); in single_transfer()
1838 for(cl = config->cookies; cl; cl = cl->next) { in single_transfer()
1839 if(cl == config->cookies) in single_transfer()
1840 result = curlx_dyn_addf(&cookies, "%s", cl->data); in single_transfer()
1842 result = curlx_dyn_addf(&cookies, ";%s", cl->data); in single_transfer()
1852 my_setopt_str(curl, CURLOPT_COOKIE, curlx_dyn_ptr(&cookies)); in single_transfer()
1853 curlx_dyn_free(&cookies); in single_transfer()
H A Dtool_cfgable.h50 struct curl_slist *cookies; /* cookies to serialize into a single line */ member
52 struct curl_slist *cookiefiles; /* file(s) to load cookies from */
H A Dtool_cfgable.c59 curl_slist_free_all(config->cookies); in free_config_fields()
/third_party/NuttX/fs/nfs/
H A Dnfs_adapter.c975 /* Use 2 cookies */ in vfs_nfs_readdir()
977 uint32_t cookies[2]; in vfs_nfs_readdir() local
1005 cookies[0] = 0; in vfs_nfs_readdir()
1006 cookies[1] = 0; in vfs_nfs_readdir()
1036 ptr[0] = cookies[0]; in vfs_nfs_readdir()
1037 ptr[1] = cookies[1]; in vfs_nfs_readdir()
1195 cookies[0] = entry_pos->cookie[0]; in vfs_nfs_readdir()
1196 cookies[1] = entry_pos->cookie[1]; in vfs_nfs_readdir()
/third_party/mbedtls/programs/ssl/
H A Dssl_server2.c362 " cookies=0/1/-1 default: 1 (enabled)\n" \
678 int cookies; /* Use cookies for DTLS? -1 to break them */ member
1758 opt.cookies = DFL_COOKIES; in main()
2217 } else if (strcmp(p, "cookies") == 0) { in main()
2218 opt.cookies = atoi(q); in main()
2219 if (opt.cookies < -1 || opt.cookies > 1) { in main()
3004 if (opt.cookies > 0) { in main()
3016 if (opt.cookies in main()
[all...]

Completed in 29 milliseconds

12