Home
last modified time | relevance | path

Searched refs:cookies (Results 1 – 25 of 173) sorted by relevance

1234567

/external/python/cpython3/Lib/test/
Dtest_http_cookies.py6 from http import cookies
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.SimpleCookie('Customer="WILE_E_COYOTE"')
118 C = cookies.SimpleCookie('Customer="WILE_E_COYOTE"')
125 C = cookies.SimpleCookie()
[all …]
/external/apache-http/src/org/apache/http/impl/client/
DBasicCookieStore.java65 private final ArrayList<Cookie> cookies; field in BasicCookieStore
76 this.cookies = new ArrayList<Cookie>(); in BasicCookieStore()
93 for (Iterator<Cookie> it = cookies.iterator(); it.hasNext();) { in addCookie()
100 cookies.add(cookie); in addCookie()
115 public synchronized void addCookies(Cookie[] cookies) { in addCookies() argument
116 if (cookies != null) { in addCookies()
117 for (Cookie cooky : cookies) { in addCookies()
130 return Collections.unmodifiableList(this.cookies); in getCookies()
146 for (Iterator<Cookie> it = cookies.iterator(); it.hasNext();) { in clearExpired()
157 return cookies.toString(); in toString()
[all …]
/external/apache-http/src/org/apache/http/impl/cookie/
DRFC2109Spec.java136 public List<Header> formatCookies(List<Cookie> cookies) { in formatCookies() argument
137 if (cookies == null) { in formatCookies()
140 if (cookies.isEmpty()) { in formatCookies()
143 if (cookies.size() > 1) { in formatCookies()
145 cookies = new ArrayList<Cookie>(cookies); in formatCookies()
146 Collections.sort(cookies, PATH_COMPARATOR); in formatCookies()
149 return doFormatOneHeader(cookies); in formatCookies()
151 return doFormatManyHeaders(cookies); in formatCookies()
155 private List<Header> doFormatOneHeader(final List<Cookie> cookies) { in doFormatOneHeader() argument
158 for (Cookie cookie : cookies) { in doFormatOneHeader()
[all …]
DNetscapeDraftSpec.java152 public List<Header> formatCookies(final List<Cookie> cookies) { in formatCookies() argument
153 if (cookies == null) { in formatCookies()
156 if (cookies.isEmpty()) { in formatCookies()
159 CharArrayBuffer buffer = new CharArrayBuffer(20 * cookies.size()); in formatCookies()
162 for (int i = 0; i < cookies.size(); i++) { in formatCookies()
163 Cookie cookie = cookies.get(i); in formatCookies()
DBrowserCompatSpec.java158 public List<Header> formatCookies(final List<Cookie> cookies) { in formatCookies() argument
159 if (cookies == null) { in formatCookies()
162 if (cookies.isEmpty()) { in formatCookies()
165 CharArrayBuffer buffer = new CharArrayBuffer(20 * cookies.size()); in formatCookies()
168 for (int i = 0; i < cookies.size(); i++) { in formatCookies()
169 Cookie cookie = cookies.get(i); in formatCookies()
DBestMatchSpec.java166 public List<Header> formatCookies(final List<Cookie> cookies) { in formatCookies() argument
167 if (cookies == null) { in formatCookies()
171 for (Cookie cookie: cookies) { in formatCookies()
177 return getStrict().formatCookies(cookies); in formatCookies()
179 return getCompat().formatCookies(cookies); in formatCookies()
/external/python/cpython2/Doc/library/
Dcookielib.rst5 :synopsis: Classes for automatic handling of HTTP cookies.
21 cookies. It is useful for accessing web sites that require small pieces of data
22 -- :dfn:`cookies` -- to be set on the client machine by an HTTP response from a
27 :rfc:`2109` cookies are parsed as Netscape cookies and subsequently treated
28 either as Netscape or RFC 2965 cookies according to the 'policy' in effect.
29 Note that the great majority of cookies on the Internet are Netscape cookies.
50 cookies from a file.
65 The :class:`CookieJar` class stores HTTP cookies. It extracts cookies from HTTP
67 automatically expire contained cookies when necessary. Subclasses are also
68 responsible for storing and retrieving cookies from a file or database.
[all …]
/external/python/cpython3/Doc/library/
Dhttp.cookiejar.rst5 :synopsis: Classes for automatic handling of HTTP cookies.
15 cookies. It is useful for accessing web sites that require small pieces of data
16 -- :dfn:`cookies` -- to be set on the client machine by an HTTP response from a
21 :rfc:`2109` cookies are parsed as Netscape cookies and subsequently treated
22 either as Netscape or RFC 2965 cookies according to the 'policy' in effect.
23 Note that the great majority of cookies on the Internet are Netscape cookies.
44 cookies from a file. :exc:`LoadError` is a subclass of :exc:`OSError`.
58 The :class:`CookieJar` class stores HTTP cookies. It extracts cookies from HTTP
60 automatically expire contained cookies when necessary. Subclasses are also
61 responsible for storing and retrieving cookies from a file or database.
[all …]
Dhttp.cookies.rst1 :mod:`http.cookies` --- HTTP state management
4 .. module:: http.cookies
5 :synopsis: Support for HTTP state management (cookies).
10 **Source code:** :source:`Lib/http/cookies.py`
14 The :mod:`http.cookies` module defines classes for abstracting the concept of
15 cookies, an HTTP state management mechanism. It supports both simple string-only
16 cookies, and provides an abstraction for having any serializable data-type as
65 :mod:`http.cookies` modules do not depend on each other.
235 The following example demonstrates how to use the :mod:`http.cookies` module.
240 >>> from http import cookies
[all …]
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/
DCookieIntegrationTest.java69 CookieHandler cookies = session.getCookies(); in serve() local
70 for (String cookieName : cookies) { in serve()
71 this.cookiesReceived.add(new Cookie(cookieName, cookies.read(cookieName))); in serve()
74 cookies.set(c); in serve()
92 CookieStore cookies = this.httpclient.getCookieStore(); in testCookieSentBackToClient() local
93 assertEquals(1, cookies.getCookies().size()); in testCookieSentBackToClient()
94 assertEquals("name", cookies.getCookies().get(0).getName()); in testCookieSentBackToClient()
95 assertEquals("value", cookies.getCookies().get(0).getValue()); in testCookieSentBackToClient()
104 CookieStore cookies = this.httpclient.getCookieStore(); in testNoCookies() local
105 assertEquals(0, cookies.getCookies().size()); in testNoCookies()
/external/curl/docs/
DHTTP-COOKIES.md7 requests to the same domains and paths for which the cookies were set.
9 Cookies are either "session cookies" which typically are forgotten when the
11 the cookies aren't session cookies they have expiration dates after which
17 For a very long time, the only spec explaining how to use cookies was the
21 published and details how cookies work within HTTP. In 2016, an update which
26 to deprecate modification of 'secure' cookies from non-secure origins. Both
34 Netscape once created a file format for storing cookies on disk so that they
36 sharing the cookies with browsers, only to see browsers move away from that
49 have curl receive and send cookies exactly as mandated in the specs.
55 tell curl a file to read cookies from and start the cookie engine, or if it
[all …]
/external/curl/lib/
Dcookie.c345 data->cookies, in Curl_cookie_loadfiles()
353 data->cookies = newcookies; in Curl_cookie_loadfiles()
377 static void remove_expired(struct CookieInfo *cookies) in remove_expired() argument
385 co = cookies->cookies[i]; in remove_expired()
390 cookies->cookies[i] = co->next; in remove_expired()
395 cookies->numcookies--; in remove_expired()
970 clist = c->cookies[myhash]; in Curl_cookie_add()
1081 c->cookies[myhash] = co; in Curl_cookie_add()
1308 if(!c || !c->cookies[myhash]) in Curl_cookie_getlist()
1317 co = c->cookies[myhash]; in Curl_cookie_getlist()
[all …]
Dshare.c80 if(!share->cookies) { in curl_share_setopt()
81 share->cookies = Curl_cookie_init(NULL, NULL, NULL, TRUE); in curl_share_setopt()
82 if(!share->cookies) in curl_share_setopt()
131 if(share->cookies) { in curl_share_setopt()
132 Curl_cookie_cleanup(share->cookies); in curl_share_setopt()
133 share->cookies = NULL; in curl_share_setopt()
203 Curl_cookie_cleanup(share->cookies); in curl_share_cleanup()
Dcookie.h61 struct Cookie *cookies[COOKIE_HASH_SIZE]; member
101 void Curl_cookie_freelist(struct Cookie *cookies);
102 void Curl_cookie_clearall(struct CookieInfo *cookies);
103 void Curl_cookie_clearsess(struct CookieInfo *cookies);
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DContinuingHttpServletRequestTest.java46 Cookie[] cookies = in testReturnDelegateCookies() local
49 expect(delegate.getCookies()).andStubReturn(cookies); in testReturnDelegateCookies()
55 assertCookieArraysEqual(cookies, continuingRequest.getCookies()); in testReturnDelegateCookies()
58 cookies[0].setValue("INVALID"); in testReturnDelegateCookies()
59 cookies[1].setValue("INVALID"); in testReturnDelegateCookies()
60 cookies[1].setMaxAge(123); in testReturnDelegateCookies()
63 assertCookieArraysEqual(cookies, continuingRequest.getCookies()); in testReturnDelegateCookies()
/external/curl/docs/cmdline-opts/
Dcookie-jar.d5 Help: Write cookies to <filename> after operation
7 Specify to which file you want curl to write all cookies after a completed
8 operation. Curl writes all cookies from its in-memory cookie storage to the
9 given file at the end of operations. If no cookies are known, no data will be
11 you set the file name to a single dash, "-", the cookies will be written to
15 record and use cookies. Another way to activate it is to use the --cookie
Djunk-session-cookies.d1 Long: junk-session-cookies
3 Help: Ignore session cookies read from file
7 When curl is told to read cookies from a given file, this option will make it
9 a new session is started. Typical browsers always discard session cookies when
Dcookie.d5 Help: Send cookies from string/file
13 engine which will make curl record incoming cookies, which may be handy if
35 Users very often want to both read cookies from a file and write updated
36 cookies back to a file, so using both --cookie and --cookie-jar in the same
/external/guice/extensions/servlet/src/com/google/inject/servlet/
DContinuingHttpServletRequest.java38 private final Cookie[] cookies; field in ContinuingHttpServletRequest
46 cookies = new Cookie[numberOfCookies]; in ContinuingHttpServletRequest()
53 cookies[i] = originalCookie; in ContinuingHttpServletRequest()
55 cookies[i] = new ImmutableCookie(originalCookie); in ContinuingHttpServletRequest()
59 cookies = null; in ContinuingHttpServletRequest()
100 return cookies; in getCookies()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DCookiesTest.java76 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); in testNetscapeResponse() local
77 assertEquals(1, cookies.size()); in testNetscapeResponse()
78 HttpCookie cookie = cookies.get(0); in testNetscapeResponse()
106 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); in testRfc2109Response() local
107 assertEquals(1, cookies.size()); in testRfc2109Response()
108 HttpCookie cookie = cookies.get(0); in testRfc2109Response()
139 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); in testRfc2965Response() local
140 assertEquals(1, cookies.size()); in testRfc2965Response()
141 HttpCookie cookie = cookies.get(0); in testRfc2965Response()
173 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); in testQuotedAttributeValues() local
[all …]
/external/curl/docs/examples/
Dcookie_interface.c39 struct curl_slist *cookies; in print_cookies() local
44 res = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies); in print_cookies()
50 nc = cookies; in print_cookies()
60 curl_slist_free_all(cookies); in print_cookies()
/external/curl/tests/data/
Dtest11516 cookies
13 # reject cookies with too long name (instead of capping)
38 HTTP with too long cookies
58 # https://curl.haxx.se/docs/http-cookies.html
Dtest466 cookies
26 This server reply is for testing cookies
36 HTTP with bad domain name, get cookies and store in cookie jar
49 # https://curl.haxx.se/docs/http-cookies.html
74 # https://curl.haxx.se/docs/http-cookies.html
Dtest10247 cookies
21 This server reply is for testing a Location: following with cookies
32 This server reply is for testing a Location: following with cookies
75 HTTP Location: following with cookies
/external/python/cpython2/Lib/
Dcookielib.py1245 cookies = []
1259 cookies.append(cookie)
1260 return cookies
1264 cookies = []
1266 cookies.extend(self._cookies_for_domain(domain, request))
1267 return cookies
1269 def _cookie_attrs(self, cookies): argument
1279 cookies.sort(key=lambda arg: len(arg.path), reverse=True)
1284 for cookie in cookies:
1340 cookies = self._cookies_for_request(request)
[all …]

1234567