Home
last modified time | relevance | path

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

123456

/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/curl/lib/
Dcookie.c266 data->cookies, in Curl_cookie_loadfiles()
274 data->cookies = newcookies; in Curl_cookie_loadfiles()
298 static void remove_expired(struct CookieInfo *cookies) in remove_expired() argument
303 co = cookies->cookies; in remove_expired()
308 if(co == cookies->cookies) { in remove_expired()
309 cookies->cookies = co->next; in remove_expired()
314 cookies->numcookies--; in remove_expired()
779 clist = c->cookies; in Curl_cookie_add()
864 c->cookies = co; in Curl_cookie_add()
1015 if(!c || !c->cookies) 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()
123 if(share->cookies) { in curl_share_setopt()
124 Curl_cookie_cleanup(share->cookies); in curl_share_setopt()
125 share->cookies = NULL; in curl_share_setopt()
195 Curl_cookie_cleanup(share->cookies); in curl_share_cleanup()
Dcookie.h50 struct Cookie *cookies; member
85 void Curl_cookie_freelist(struct Cookie *cookies, bool cookiestoo);
86 void Curl_cookie_clearall(struct CookieInfo *cookies);
87 void Curl_cookie_clearsess(struct CookieInfo *cookies);
/external/curl/docs/
DHTTP-COOKIES1 Updated: July 3, 2012 (http://curl.haxx.se/docs/http-cookies.html)
24 HTTP cookies are pieces of 'name=contents' snippets that a server tells the
26 requests to the same domains/paths for which the cookies were set.
28 Cookies are either "session cookies" which typically are forgotten when the
30 the cookies aren't session cookies they have expiration dates after which
36 For a very long time, the only spec explaining how to use cookies was the
40 and details how cookies work within HTTP.
44 Netscape once created a file format for storing cookies on disk so that they
46 sharing the cookies with browsers, only to see browsers move away from that
59 have curl receive and send cookies exactly as mandated in the specs.
[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/chromium-trace/catapult/third_party/webapp2/tests/
Dextras_appengine_sessions_ndb_test.py48 cookies = rsp.headers.get('Set-Cookie')
49 req = webapp2.Request.blank('/', headers=[('Cookie', cookies)])
65 cookies = rsp.headers.get('Set-Cookie')
66 req = webapp2.Request.blank('/', headers=[('Cookie', cookies)])
82 cookies = rsp.headers.get('Set-Cookie')
83 req = webapp2.Request.blank('/', headers=[('Cookie', cookies)])
111 cookies = rsp.headers.get('Set-Cookie')
112 req = webapp2.Request.blank('/', headers=[('Cookie', cookies)])
132 cookies = rsp.headers.get('Set-Cookie')
133 req = webapp2.Request.blank('/', headers=[('Cookie', cookies)])
[all …]
Dextras_appengine_sessions_memcache_test.py41 cookies = rsp.headers.get('Set-Cookie')
42 req = webapp2.Request.blank('/', headers=[('Cookie', cookies)])
58 cookies = rsp.headers.get('Set-Cookie')
59 req = webapp2.Request.blank('/', headers=[('Cookie', cookies)])
87 cookies = rsp.headers.get('Set-Cookie')
88 req = webapp2.Request.blank('/', headers=[('Cookie', cookies)])
108 cookies = rsp.headers.get('Set-Cookie')
109 req = webapp2.Request.blank('/', headers=[('Cookie', cookies)])
126 cookies = rsp.headers.get('Set-Cookie')
127 req = webapp2.Request.blank('/', headers=[('Cookie', cookies)])
Dextras_sessions_test.py58 cookies = rsp.headers.get('Set-Cookie')
59 req = webapp2.Request.blank('/', headers=[('Cookie', cookies)])
75 cookies = rsp.headers.get('Set-Cookie')
76 req = webapp2.Request.blank('/', headers=[('Cookie', cookies)])
106 cookies = rsp.headers.get('Set-Cookie')
107 req = webapp2.Request.blank('/', headers=[('Cookie', cookies)])
127 cookies = rsp.headers.get('Set-Cookie')
128 req = webapp2.Request.blank('/', headers=[('Cookie', cookies)])
145 cookies = rsp.headers.get('Set-Cookie')
146 req = webapp2.Request.blank('/', headers=[('Cookie', cookies)])
[all …]
/external/chromium-trace/catapult/third_party/Paste/paste/
Drequest.py25 from http.cookies import SimpleCookie, CookieError
51 cookies, check_header = environ['paste.cookies']
53 return cookies
54 cookies = SimpleCookie()
56 cookies.load(header)
59 environ['paste.cookies'] = (cookies, header)
60 return cookies
74 cookies, check_header = environ['paste.cookies.dict']
76 return cookies
77 cookies = SimpleCookie()
[all …]
Dwsgiwrappers.py13 from http.cookies import SimpleCookie
253 def cookies(self): member in WSGIRequest
260 cookies = property(cookies, doc=cookies.__doc__) variable in WSGIRequest
292 msg += '\ncookies=%s>' % pf(self.cookies)
313 self.cookies = SimpleCookie()
359 for c in self.cookies.values():
392 self.cookies[key] = value
397 self.cookies[key][var_name.replace('_', '-')] = var_value
404 self.cookies[key] = ''
406 self.cookies[key]['path'] = path
[all …]
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DContinuingHttpServletRequestTest.java47 Cookie[] cookies = new Cookie[]{ in testReturnDelegateCookies() local
52 expect(delegate.getCookies()).andStubReturn(cookies); in testReturnDelegateCookies()
59 assertCookieArraysEqual(cookies, continuingRequest.getCookies()); in testReturnDelegateCookies()
62 cookies[0].setValue("INVALID"); in testReturnDelegateCookies()
63 cookies[1].setValue("INVALID"); in testReturnDelegateCookies()
64 cookies[1].setMaxAge(123); in testReturnDelegateCookies()
67 assertCookieArraysEqual(cookies, continuingRequest.getCookies()); in testReturnDelegateCookies()
/external/guice/extensions/servlet/src/com/google/inject/servlet/
DContinuingHttpServletRequest.java41 private final Cookie[] cookies; field in ContinuingHttpServletRequest
49 cookies = new Cookie[numberOfCookies]; in ContinuingHttpServletRequest()
56 cookies[i] = originalCookie; in ContinuingHttpServletRequest()
58 cookies[i] = new ImmutableCookie(originalCookie); in ContinuingHttpServletRequest()
62 cookies = null; in ContinuingHttpServletRequest()
96 return cookies; in getCookies()
/external/chromium-trace/catapult/third_party/Paste/paste/auth/
Dauth_tkt.py47 from http.cookies import SimpleCookie
302 cookies = request.get_cookies(environ)
303 if self.cookie_name in cookies:
304 cookie_value = cookies[self.cookie_name].value
377 cookies = []
379 cookies.append(('Set-Cookie', '%s=%s; Path=/%s' % (
382 cookies.append(('Set-Cookie', '%s=%s; Path=/; Domain=%s%s' % (
386 cookies.append(('Set-Cookie', '%s=%s; Path=/; Domain=%s%s' % (
390 return cookies
396 cookies = [
[all …]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowCookieManager.java18 private Map<String,String> cookies = new HashMap<String, String>(); field in ShadowCookieManager
31 cookies.put(url, value); in setCookie()
36 return cookies.get(url); in getCookie()
51 cookies.clear(); in removeAllCookie()
/external/chromium-trace/catapult/third_party/WebOb/docs/modules/
Dwebob.txt54 .. autoclass:: webob.cookies.CookieProfile
56 .. autoclass:: webob.cookies.SignedCookieProfile
58 .. autoclass:: webob.cookies.SignedSerializer
60 .. autoclass:: webob.cookies.JSONSerializer
62 .. autofunction:: webob.cookies.make_cookie
/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.c36 struct curl_slist *cookies; in print_cookies() local
41 res = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies); in print_cookies()
46 nc = cookies, i = 1; in print_cookies()
55 curl_slist_free_all(cookies); in print_cookies()
/external/jetty/src/java/org/eclipse/jetty/server/
DCookieCutter.java69 public void setCookies(Cookie[] cookies) in setCookies() argument
71 _cookies=cookies; in setCookies()
113 Object cookies = null; in parseFields() local
317 cookies = LazyList.add(cookies, cookie); in parseFields()
331 _cookies = (Cookie[]) LazyList.toArray(cookies,Cookie.class); in parseFields()
/external/chromium-trace/catapult/third_party/Paste/tests/
Dtest_fixture.py21 app.cookies['one'] = 'first';
22 app.cookies['two'] = 'second';
23 app.cookies['three'] = '';
/external/curl/tests/data/
Dtest466 cookies
26 This server reply is for testing cookies
36 HTTP, get cookies and store in cookie jar
49 # http://curl.haxx.se/docs/http-cookies.html
74 # http://curl.haxx.se/docs/http-cookies.html

123456