Lines Matching refs:cookie

63         HttpCookie cookie = cookies.get(index);
64 if (cookie == null || !n.equalsIgnoreCase(cookie.getName())) {
65 raiseError("name", cookie.getName(), n);
74 HttpCookie cookie = cookies.get(index);
75 if (cookie == null || !v.equals(cookie.getValue())) {
76 raiseError("value", cookie.getValue(), v);
85 HttpCookie cookie = cookies.get(index);
86 if (cookie == null || (ver != cookie.getVersion())) {
87 raiseError("version", Integer.toString(cookie.getVersion()), Integer.toString(ver));
96 HttpCookie cookie = cookies.get(index);
97 if (cookie == null || !p.equals(cookie.getPath())) {
98 raiseError("path", cookie.getPath(), p);
116 HttpCookie cookie = cookies.get(index);
117 if (cookie == null || !c.equals(cookie.getComment())) {
118 raiseError("comment", cookie.getComment(), c);
127 HttpCookie cookie = cookies.get(index);
128 if (cookie == null || !cu.equals(cookie.getCommentURL())) {
129 raiseError("comment url", cookie.getCommentURL(), cu);
138 HttpCookie cookie = cookies.get(index);
139 if (cookie == null || (dsc != cookie.getDiscard())) {
140 raiseError("discard", Boolean.toString(cookie.getDiscard()), Boolean.toString(dsc));
149 HttpCookie cookie = cookies.get(index);
150 if (cookie == null || !d.equalsIgnoreCase(cookie.getDomain())) {
151 raiseError("domain", cookie.getDomain(), d);
160 HttpCookie cookie = cookies.get(index);
161 if (cookie == null || (a != cookie.getMaxAge())) {
162 raiseError("max-age", Long.toString(cookie.getMaxAge()), Long.toString(a));
171 HttpCookie cookie = cookies.get(index);
172 if (cookie == null || !p.equals(cookie.getPortlist())) {
173 raiseError("portlist", cookie.getPortlist(), p);
182 HttpCookie cookie = cookies.get(index);
183 if (cookie == null || b != cookie.isHttpOnly()) {
184 raiseError("HttpOnly", String.valueOf(cookie.isHttpOnly()), String.valueOf(b));
250 // a 'full' cookie
265 // a 'full' cookie, without leading set-cookie2 token
280 // empty set-cookie string
315 header("Test using netscape cookie syntax");
317 test("set-cookie: CUSTOMER=WILE_E_COYOTE; path=/; expires=Wednesday, 09-Nov-99 23:12:40 GMT")
320 // a Netscape cookie, without set-cookie leading token
324 // a 'google' cookie
331 test("set-cookie: CUSTOMER=WILE_E_COYOTE; path=/; expires=Wednesday, 09-Nov-99 23:12:40 GMT; Secure")
335 test("set-cookie: CUSTOMER=WILE_E_COYOTE; path=/; expires=Wednesday, 09-Nov-99 23:12:40 GMT; path=\"/acme\"")
339 test("set-cookie: CUSTOMER=WILE_E_COYOTE; version='1'").ver(1);
381 test("set-cookie: CUSTOMER=WILE_E_COYOTE;HttpOnly").httpOnly(true);
382 test("set-cookie: CUSTOMER=WILE_E_COYOTE").httpOnly(false);