Home
last modified time | relevance | path

Searched refs:cookie (Results 1 – 25 of 285) sorted by relevance

12345678910>>...12

/external/apache-http/src/org/apache/http/impl/cookie/
DRFC2965DomainAttributeHandler.java32 package org.apache.http.impl.cookie;
36 import org.apache.http.cookie.ClientCookie;
37 import org.apache.http.cookie.Cookie;
38 import org.apache.http.cookie.CookieAttributeHandler;
39 import org.apache.http.cookie.CookieOrigin;
40 import org.apache.http.cookie.MalformedCookieException;
41 import org.apache.http.cookie.SetCookie;
64 public void parse(final SetCookie cookie, String domain) in parse() argument
66 if (cookie == null) { in parse()
86 cookie.setDomain(domain); in parse()
[all …]
DRFC2965PortAttributeHandler.java32 package org.apache.http.impl.cookie;
36 import org.apache.http.cookie.ClientCookie;
37 import org.apache.http.cookie.Cookie;
38 import org.apache.http.cookie.CookieAttributeHandler;
39 import org.apache.http.cookie.CookieOrigin;
40 import org.apache.http.cookie.MalformedCookieException;
41 import org.apache.http.cookie.SetCookie;
42 import org.apache.http.cookie.SetCookie2;
110 public void parse(final SetCookie cookie, final String portValue) in parse() argument
112 if (cookie == null) { in parse()
[all …]
DRFC2965VersionAttributeHandler.java32 package org.apache.http.impl.cookie;
34 import org.apache.http.cookie.ClientCookie;
35 import org.apache.http.cookie.Cookie;
36 import org.apache.http.cookie.CookieAttributeHandler;
37 import org.apache.http.cookie.CookieOrigin;
38 import org.apache.http.cookie.MalformedCookieException;
39 import org.apache.http.cookie.SetCookie;
40 import org.apache.http.cookie.SetCookie2;
59 public void parse(final SetCookie cookie, final String value) in parse() argument
61 if (cookie == null) { in parse()
[all …]
DRFC2109Spec.java32 package org.apache.http.impl.cookie;
40 import org.apache.http.cookie.ClientCookie;
41 import org.apache.http.cookie.Cookie;
42 import org.apache.http.cookie.CookieOrigin;
43 import org.apache.http.cookie.CookiePathComparator;
44 import org.apache.http.cookie.MalformedCookieException;
45 import org.apache.http.cookie.SM;
121 public void validate(final Cookie cookie, final CookieOrigin origin) in validate() argument
123 if (cookie == null) { in validate()
126 String name = cookie.getName(); in validate()
[all …]
DRFC2965Spec.java31 package org.apache.http.impl.cookie;
42 import org.apache.http.cookie.ClientCookie;
43 import org.apache.http.cookie.Cookie;
44 import org.apache.http.cookie.CookieAttributeHandler;
45 import org.apache.http.cookie.CookieOrigin;
46 import org.apache.http.cookie.MalformedCookieException;
47 import org.apache.http.cookie.SM;
85 BasicClientCookie cookie = new BasicClientCookie(name, value); in createCookie() local
86 cookie.setPath(getDefaultPath(origin)); in createCookie()
87 cookie.setDomain(getDefaultDomain(origin)); in createCookie()
[all …]
DBasicPathHandler.java31 package org.apache.http.impl.cookie;
33 import org.apache.http.cookie.Cookie;
34 import org.apache.http.cookie.CookieAttributeHandler;
35 import org.apache.http.cookie.CookieOrigin;
36 import org.apache.http.cookie.MalformedCookieException;
37 import org.apache.http.cookie.SetCookie;
51 public void parse(final SetCookie cookie, String value) in parse() argument
53 if (cookie == null) { in parse()
59 cookie.setPath(value); in parse()
62 public void validate(final Cookie cookie, final CookieOrigin origin) in validate() argument
[all …]
DBestMatchSpec.java32 package org.apache.http.impl.cookie;
38 import org.apache.http.cookie.Cookie;
39 import org.apache.http.cookie.CookieOrigin;
40 import org.apache.http.cookie.CookieSpec;
41 import org.apache.http.cookie.MalformedCookieException;
137 final Cookie cookie, in validate() argument
139 if (cookie == null) { in validate()
145 if (cookie.getVersion() > 0) { in validate()
146 getStrict().validate(cookie, origin); in validate()
148 getCompat().validate(cookie, origin); in validate()
[all …]
DBasicDomainHandler.java31 package org.apache.http.impl.cookie;
33 import org.apache.http.cookie.Cookie;
34 import org.apache.http.cookie.CookieAttributeHandler;
35 import org.apache.http.cookie.CookieOrigin;
36 import org.apache.http.cookie.MalformedCookieException;
37 import org.apache.http.cookie.SetCookie;
51 public void parse(final SetCookie cookie, final String value) in parse() argument
53 if (cookie == null) { in parse()
62 cookie.setDomain(value); in parse()
65 public void validate(final Cookie cookie, final CookieOrigin origin) in validate() argument
[all …]
DCookieSpecBase.java32 package org.apache.http.impl.cookie;
40 import org.apache.http.cookie.Cookie;
41 import org.apache.http.cookie.CookieAttributeHandler;
42 import org.apache.http.cookie.CookieOrigin;
43 import org.apache.http.cookie.MalformedCookieException;
86 BasicClientCookie cookie = new BasicClientCookie(name, value); in parse() local
87 cookie.setPath(getDefaultPath(origin)); in parse()
88 cookie.setDomain(getDefaultDomain(origin)); in parse()
96 cookie.setAttribute(s, attrib.getValue()); in parse()
100 handler.parse(cookie, attrib.getValue()); in parse()
[all …]
DRFC2965CommentUrlAttributeHandler.java32 package org.apache.http.impl.cookie;
34 import org.apache.http.cookie.Cookie;
35 import org.apache.http.cookie.CookieAttributeHandler;
36 import org.apache.http.cookie.CookieOrigin;
37 import org.apache.http.cookie.MalformedCookieException;
38 import org.apache.http.cookie.SetCookie;
39 import org.apache.http.cookie.SetCookie2;
55 public void parse(final SetCookie cookie, final String commenturl) in parse() argument
57 if (cookie instanceof SetCookie2) { in parse()
58 SetCookie2 cookie2 = (SetCookie2) cookie; in parse()
[all …]
DRFC2965DiscardAttributeHandler.java32 package org.apache.http.impl.cookie;
34 import org.apache.http.cookie.Cookie;
35 import org.apache.http.cookie.CookieAttributeHandler;
36 import org.apache.http.cookie.CookieOrigin;
37 import org.apache.http.cookie.MalformedCookieException;
38 import org.apache.http.cookie.SetCookie;
39 import org.apache.http.cookie.SetCookie2;
55 public void parse(final SetCookie cookie, final String commenturl) in parse() argument
57 if (cookie instanceof SetCookie2) { in parse()
58 SetCookie2 cookie2 = (SetCookie2) cookie; in parse()
[all …]
DRFC2109DomainHandler.java31 package org.apache.http.impl.cookie;
35 import org.apache.http.cookie.Cookie;
36 import org.apache.http.cookie.CookieAttributeHandler;
37 import org.apache.http.cookie.CookieOrigin;
38 import org.apache.http.cookie.MalformedCookieException;
39 import org.apache.http.cookie.SetCookie;
53 public void parse(final SetCookie cookie, final String value) in parse() argument
55 if (cookie == null) { in parse()
64 cookie.setDomain(value); in parse()
67 public void validate(final Cookie cookie, final CookieOrigin origin) in validate() argument
[all …]
DBasicSecureHandler.java31 package org.apache.http.impl.cookie;
33 import org.apache.http.cookie.Cookie;
34 import org.apache.http.cookie.CookieOrigin;
35 import org.apache.http.cookie.MalformedCookieException;
36 import org.apache.http.cookie.SetCookie;
50 public void parse(final SetCookie cookie, final String value) in parse() argument
52 if (cookie == null) { in parse()
55 cookie.setSecure(true); in parse()
59 public boolean match(final Cookie cookie, final CookieOrigin origin) { in match() argument
60 if (cookie == null) { in match()
[all …]
DRFC2109VersionHandler.java31 package org.apache.http.impl.cookie;
33 import org.apache.http.cookie.Cookie;
34 import org.apache.http.cookie.CookieOrigin;
35 import org.apache.http.cookie.MalformedCookieException;
36 import org.apache.http.cookie.SetCookie;
50 public void parse(final SetCookie cookie, final String value) in parse() argument
52 if (cookie == null) { in parse()
62 cookie.setVersion(Integer.parseInt(value)); in parse()
70 public void validate(final Cookie cookie, final CookieOrigin origin) in validate() argument
72 if (cookie == null) { in validate()
[all …]
DNetscapeDomainHandler.java31 package org.apache.http.impl.cookie;
36 import org.apache.http.cookie.Cookie;
37 import org.apache.http.cookie.CookieOrigin;
38 import org.apache.http.cookie.MalformedCookieException;
53 public void validate(final Cookie cookie, final CookieOrigin origin) in validate() argument
55 super.validate(cookie, origin); in validate()
58 String domain = cookie.getDomain(); in validate()
97 public boolean match(Cookie cookie, CookieOrigin origin) { in match() argument
98 if (cookie == null) { in match()
105 String domain = cookie.getDomain(); in match()
DAbstractCookieAttributeHandler.java31 package org.apache.http.impl.cookie;
33 import org.apache.http.cookie.Cookie;
34 import org.apache.http.cookie.CookieAttributeHandler;
35 import org.apache.http.cookie.CookieOrigin;
36 import org.apache.http.cookie.MalformedCookieException;
46 public void validate(final Cookie cookie, final CookieOrigin origin) in validate() argument
51 public boolean match(final Cookie cookie, final CookieOrigin origin) { in match() argument
/external/curl/tests/data/
Dtest50623 run 1: set cookie 1, 2 and 3
34 run 2: set cookie 4 and 5
49 run 3: overwrite cookie 1 and 4, set cookie 6 with and without tailmatch
59 HTTP with shared cookie list (and dns cache)
63 # which causes the cookie expiry times to be different.
89 lock: cookie [Pigs in space]: 2
90 unlock: cookie [Pigs in space]: 3
92 lock: cookie [Pigs in space]: 4
93 unlock: cookie [Pigs in space]: 5
95 lock: cookie [Pigs in space]: 6
[all …]
/external/python/cpython2/Lib/
Dcookielib.py830 def set_ok(self, cookie, request): argument
839 def return_ok(self, cookie, request): argument
927 def set_ok(self, cookie, request): argument
934 _debug(" - checking cookie %s=%s", cookie.name, cookie.value)
936 assert cookie.name is not None
941 if not fn(cookie, request):
946 def set_ok_version(self, cookie, request): argument
947 if cookie.version is None:
951 cookie.name, cookie.value)
953 if cookie.version > 0 and not self.rfc2965:
[all …]
D_LWPCookieJar.py20 def lwp_cookie_str(cookie): argument
26 h = [(cookie.name, cookie.value),
27 ("path", cookie.path),
28 ("domain", cookie.domain)]
29 if cookie.port is not None: h.append(("port", cookie.port))
30 if cookie.path_specified: h.append(("path_spec", None))
31 if cookie.port_specified: h.append(("port_spec", None))
32 if cookie.domain_initial_dot: h.append(("domain_dot", None))
33 if cookie.secure: h.append(("secure", None))
34 if cookie.expires: h.append(("expires",
[all …]
D_MozillaCookieJar.py122 for cookie in self:
123 if not ignore_discard and cookie.discard:
125 if not ignore_expires and cookie.is_expired(now):
127 if cookie.secure: secure = "TRUE"
129 if cookie.domain.startswith("."): initial_dot = "TRUE"
131 if cookie.expires is not None:
132 expires = str(cookie.expires)
135 if cookie.value is None:
140 value = cookie.name
142 name = cookie.name
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DCookiesTest.java78 HttpCookie cookie = cookies.get(0); in testNetscapeResponse() local
79 assertEquals("a", cookie.getName()); in testNetscapeResponse()
80 assertEquals("android", cookie.getValue()); in testNetscapeResponse()
81 assertEquals(null, cookie.getComment()); in testNetscapeResponse()
82 assertEquals(null, cookie.getCommentURL()); in testNetscapeResponse()
83 assertEquals(false, cookie.getDiscard()); in testNetscapeResponse()
84 assertTrue(server.getCookieDomain().equalsIgnoreCase(cookie.getDomain())); in testNetscapeResponse()
85 assertTrue(cookie.getMaxAge() > 100000000000L); in testNetscapeResponse()
86 assertEquals("/path", cookie.getPath()); in testNetscapeResponse()
87 assertEquals(true, cookie.getSecure()); in testNetscapeResponse()
[all …]
/external/apache-http/src/org/apache/http/client/protocol/
DResponseProcessCookies.java45 import org.apache.http.cookie.Cookie;
46 import org.apache.http.cookie.CookieOrigin;
47 import org.apache.http.cookie.CookieSpec;
48 import org.apache.http.cookie.MalformedCookieException;
49 import org.apache.http.cookie.SM;
126 for (Cookie cookie : cookies) { in processCookies()
128 cookieSpec.validate(cookie, cookieOrigin); in processCookies()
129 cookieStore.addCookie(cookie); in processCookies()
134 + cookieToString(cookie) + "\". "); in processCookies()
141 + cookieToString(cookie) + "\". " + ex.getMessage()); in processCookies()
[all …]
/external/compiler-rt/test/msan/Linux/
Dfopencookie.cc16 static ssize_t cookie_read(void *cookie, char *buf, size_t size) { in cookie_read() argument
17 assert((uintptr_t)cookie == kMagicCookie); in cookie_read()
22 static ssize_t cookie_write(void *cookie, const char *buf, size_t size) { in cookie_write() argument
23 assert((uintptr_t)cookie == kMagicCookie); in cookie_write()
28 static int cookie_seek(void *cookie, off64_t *offset, int whence) { in cookie_seek() argument
29 assert((uintptr_t)cookie == kMagicCookie); in cookie_seek()
34 static int cookie_close(void *cookie) { in cookie_close() argument
35 assert((uintptr_t)cookie == kMagicCookie); in cookie_close()
49 void *cookie = (void *)kMagicCookie; in main() local
50 FILE *f = fopencookie(cookie, "rw", in main()
[all …]
/external/python/cpython2/Lib/test/
Dtest_cookielib.py396 cookie = c._cookies["www.acme.com"]["/"]["eggs"]
397 self.assertIsNone(cookie.value)
398 self.assertEqual(cookie.name, "eggs")
399 cookie = c._cookies["www.acme.com"]['/foo/']['"spam"']
400 self.assertIsNone(cookie.value)
401 self.assertEqual(cookie.name, '"spam"')
402 self.assertEqual(lwp_cookie_str(cookie), (
442 cookie = c._cookies["www.example.com"]["/"]["ni"]
446 self.assertEqual(cookie.version, version)
469 cookie = c._cookies[".acme.com"]["/"]["spam"]
[all …]
/external/libmicrohttpd/doc/chapters/
Dsessions.inc7 In order to track users, we use a simple session cookie. A session cookie expires when the
9 adding an expiration time to the cookie. The server creates a fresh session cookie whenever
10 a request without a cookie is received, or if the supplied session cookie is not known to
13 @heading Looking up the cookie
15 Since MHD parses the HTTP cookie header for us, looking up an existing cookie
22 Here, FIXME is the name we chose for our session cookie.
25 @heading Setting the cookie header
27 MHD requires the user to provide the full cookie format string in order to set
28 cookies. In order to generate a unique cookie, our example creates a random
29 64-character text string to be used as the value of the cookie:
[all …]

12345678910>>...12