/external/apache-http/src/org/apache/http/impl/client/ |
D | BasicCookieStore.java | 65 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/ |
D | RFC2109Spec.java | 136 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 …]
|
D | NetscapeDraftSpec.java | 152 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()
|
D | BrowserCompatSpec.java | 158 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()
|
D | BestMatchSpec.java | 166 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/ |
D | cookielib.rst | 5 :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/nanohttpd/core/src/test/java/fi/iki/elonen/integration/ |
D | CookieIntegrationTest.java | 69 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/ |
D | HTTP-COOKIES.md | 7 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. 25 Netscape once created a file format for storing cookies on disk so that they 27 sharing the cookies with browsers, only to see browsers move away from that 40 have curl receive and send cookies exactly as mandated in the specs. 46 tell curl a file to read cookies from and start the cookie engine, or if it 50 `-j, --junk-session-cookies` [all …]
|
/external/curl/lib/ |
D | cookie.c | 269 data->cookies, in Curl_cookie_loadfiles() 277 data->cookies = newcookies; in Curl_cookie_loadfiles() 301 static void remove_expired(struct CookieInfo *cookies) in remove_expired() argument 306 co = cookies->cookies; in remove_expired() 311 if(co == cookies->cookies) { in remove_expired() 312 cookies->cookies = co->next; in remove_expired() 317 cookies->numcookies--; in remove_expired() 811 clist = c->cookies; in Curl_cookie_add() 897 c->cookies = co; in Curl_cookie_add() 1111 if(!c || !c->cookies) in Curl_cookie_getlist() [all …]
|
D | share.c | 79 if(!share->cookies) { in curl_share_setopt() 80 share->cookies = Curl_cookie_init(NULL, NULL, NULL, TRUE); in curl_share_setopt() 81 if(!share->cookies) in curl_share_setopt() 122 if(share->cookies) { in curl_share_setopt() 123 Curl_cookie_cleanup(share->cookies); in curl_share_setopt() 124 share->cookies = NULL; in curl_share_setopt() 192 Curl_cookie_cleanup(share->cookies); in curl_share_cleanup()
|
D | cookie.h | 50 struct Cookie *cookies; member 85 void Curl_cookie_freelist(struct Cookie *cookies); 86 void Curl_cookie_clearall(struct CookieInfo *cookies); 87 void Curl_cookie_clearsess(struct CookieInfo *cookies);
|
/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
D | ContinuingHttpServletRequestTest.java | 47 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/curl/docs/cmdline-opts/ |
D | cookie-jar.d | 5 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
|
D | junk-session-cookies.d | 1 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
|
D | cookie.d | 5 Help: Send cookies from string/file 13 engine which will make curl record incoming cookies, which may be handy if 34 Users very often want to both read cookies from a file and write updated 35 cookies back to a file, so using both --cookie and --cookie-jar in the same
|
/external/guice/extensions/servlet/src/com/google/inject/servlet/ |
D | ContinuingHttpServletRequest.java | 41 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/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowCookieManager.java | 18 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/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
D | CookiesTest.java | 76 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/ |
D | cookie_interface.c | 39 struct curl_slist *cookies; in print_cookies() local 44 res = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies); in print_cookies() 50 nc = cookies, i = 1; in print_cookies() 59 curl_slist_free_all(cookies); in print_cookies()
|
/external/curl/tests/data/ |
D | test46 | 6 cookies 26 This server reply is for testing cookies 36 HTTP, 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
|
D | test1024 | 7 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
|
D | test172 | 6 cookies 27 HTTP with cookies file and custom added cookie 34 # https://curl.haxx.se/docs/http-cookies.html
|
D | test73 | 6 cookies 29 HTTP, receive cookies when using custom Host:, domain using only two dots 49 # https://curl.haxx.se/docs/http-cookies.html
|
D | test1025 | 7 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 command-line and server cookies
|
/external/python/cpython2/Lib/ |
D | cookielib.py | 1245 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 …]
|