/external/python/cpython3/Lib/test/ |
D | test_http_cookies.py | 6 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"') 128 C = cookies.SimpleCookie('Customer="WILE_E_COYOTE"') [all …]
|
/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/cpython3/Doc/library/ |
D | http.cookiejar.rst | 5 :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 …]
|
D | http.cookies.rst | 1 :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 66 :mod:`http.cookies` modules do not depend on each other. 245 The following example demonstrates how to use the :mod:`http.cookies` module. 250 >>> from http import cookies [all …]
|
/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. 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 70 have curl receive and send cookies exactly as mandated in the specs. 76 tell curl a file to read cookies from and start the cookie engine, or if it [all …]
|
/external/curl/lib/ |
D | cookie.c | 348 data->cookies, in Curl_cookie_loadfiles() 356 data->cookies = newcookies; in Curl_cookie_loadfiles() 380 static void remove_expired(struct CookieInfo *cookies) in remove_expired() argument 388 co = cookies->cookies[i]; in remove_expired() 393 cookies->cookies[i] = co->next; in remove_expired() 398 cookies->numcookies--; in remove_expired() 967 clist = c->cookies[myhash]; in Curl_cookie_add() 1078 c->cookies[myhash] = co; in Curl_cookie_add() 1282 if(!c || !c->cookies[myhash]) in Curl_cookie_getlist() 1291 co = c->cookies[myhash]; in Curl_cookie_getlist() [all …]
|
D | share.c | 80 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() 133 if(share->cookies) { in curl_share_setopt() 134 Curl_cookie_cleanup(share->cookies); in curl_share_setopt() 135 share->cookies = NULL; in curl_share_setopt() 205 Curl_cookie_cleanup(share->cookies); in curl_share_cleanup()
|
D | cookie.h | 61 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/ |
D | ContinuingHttpServletRequestTest.java | 46 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/ |
D | cookie-jar.d | 5 Help: Write cookies to <filename> after operation 8 Specify to which file you want curl to write all cookies after a completed 9 operation. Curl writes all cookies from its in-memory cookie storage to the 10 given file at the end of operations. If no cookies are known, no data will be 12 you set the file name to a single dash, "-", the cookies will be written to 16 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 8 When curl is told to read cookies from a given file, this option will make it 10 a new session is started. Typical browsers always discard session cookies when
|
D | cookie.d | 5 Help: Send cookies from string/file 14 engine which will make curl record incoming cookies, which may be handy if 36 Users very often want to both read cookies from a file and write updated 37 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 | 38 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/ |
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; in print_cookies() 60 curl_slist_free_all(cookies); in print_cookies()
|
/external/curl/tests/data/ |
D | test1151 | 6 cookies 13 # reject cookies with too long name (instead of capping) 38 HTTP with too long cookies 56 # https://curl.haxx.se/docs/http-cookies.html
|
D | test46 | 6 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 72 # https://curl.haxx.se/docs/http-cookies.html
|
D | test1166 | 7 cookies 20 This server reply is for testing a Location: following with cookies 30 HTTP response with cookies but not receiving!
|
/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 …]
|