Lines Matching refs:Cookie
16 parse_ns_headers, join_header_words, split_header_words, Cookie,
225 # of Set-Cookie: header
226 # Cookie with name 'expires'
319 return _interact(cookiejar, url, set_cookie_hdrs, "Set-Cookie")
322 """Perform a single request / response cycle, returning Cookie: header."""
325 cookie_hdr = req.get_header("Cookie", "")
376 # Cookie file should only be readable by the creator
390 # Cookie file should only be readable by the creator
409 headers = ["Set-Cookie: pll_lang=en; Max-Age=31536000; path=/"]
462 # Set-Cookie with negative max age.
464 # Set-Cookie cookies.
488 ## means that if you fold multiple Set-Cookie header fields into one,
533 # missing = sign in Cookie: header is regarded by Mozilla as a missing
645 # of Set-Cookie: header
660 headers = [f"Set-Cookie: FOO=BAR; path=/; expires={future}"]
701 cookie = Cookie(0, "name", "value",
758 # Cookie is sent back to the same URI.
1070 headers = ["Set-Cookie: CUSTOMER=WILE_E_COYOTE; path=/"]
1093 self.assertFalse(req.has_header("Cookie"))
1099 headers = ["Set-Cookie: CUSTOMER=WILE_E_COYOTE; path=/"]
1117 self.assertTrue(req.has_header("Cookie"))
1133 self.assertFalse(req.has_header("Cookie"))
1146 self.assertTrue(req.has_header("Cookie"))
1151 self.assertFalse(req.has_header("Cookie"))
1156 self.assertFalse(req.has_header("Cookie"))
1160 self.assertFalse(req.has_header("Cookie"))
1189 headers = ["Set-Cookie: session=narf; secure; path=/"]
1197 self.assertTrue(req.has_header("Cookie"))
1201 self.assertFalse(req.has_header("Cookie"))
1206 self.assertTrue(req.has_header("Cookie"))
1211 self.assertFalse(req.has_header("Cookie"))
1217 headers = ["Set-Cookie: session=narf; secure; path=/"]
1226 self.assertFalse(req.has_header("Cookie"))
1230 self.assertFalse(req.has_header("Cookie"))
1234 self.assertTrue(req.has_header("Cookie"))
1238 self.assertFalse(req.has_header("Cookie"))
1254 self.assertTrue(req.has_header("Cookie"))
1360 self.assertIsInstance(c, Cookie)
1407 ["Set-Cookie: "], # actually, nothing wrong with this
1412 ["Set-Cookie: b=foo; max-age=oops"],
1414 ["Set-Cookie: b=foo; version=spam"],
1415 ["Set-Cookie:; Expires=%s" % future],
1422 headers = ["Set-Cookie: c=foo; expires=Foo Bar 12 33:22:11 2000"]
1438 # Set-Cookie: CUSTOMER=WILE_E_COYOTE; path=/; expires=Wednesday, 09-Nov-99 23:12:40 GMT
1442 # Cookie: CUSTOMER=WILE_E_COYOTE
1446 # Set-Cookie: PART_NUMBER=ROCKET_LAUNCHER_0001; path=/
1450 # Cookie: CUSTOMER=WILE_E_COYOTE; PART_NUMBER=ROCKET_LAUNCHER_0001
1454 # Set-Cookie: SHIPPING=FEDEX; path=/fo
1458 # Cookie: CUSTOMER=WILE_E_COYOTE; PART_NUMBER=ROCKET_LAUNCHER_0001
1462 # Cookie: CUSTOMER=WILE_E_COYOTE; PART_NUMBER=ROCKET_LAUNCHER_0001; SHIPPING=FEDEX
1464 # The last Cookie is buggy, because both specifications say that the
1480 "Set-Cookie: CUSTOMER=WILE_E_COYOTE; path=/ ; "
1488 self.assertEqual(req.get_header("Cookie"), "CUSTOMER=WILE_E_COYOTE")
1491 headers.append("Set-Cookie: PART_NUMBER=ROCKET_LAUNCHER_0001; path=/")
1498 h = req.get_header("Cookie")
1502 headers.append('Set-Cookie: SHIPPING=FEDEX; path=/foo')
1509 h = req.get_header("Cookie")
1517 h = req.get_header("Cookie")
1529 # Set-Cookie: PART_NUMBER=ROCKET_LAUNCHER_0001; path=/
1533 # Cookie: PART_NUMBER=ROCKET_LAUNCHER_0001
1537 # Set-Cookie: PART_NUMBER=RIDING_ROCKET_0023; path=/ammo
1541 # Cookie: PART_NUMBER=RIDING_ROCKET_0023; PART_NUMBER=ROCKET_LAUNCHER_0001
1550 headers.append("Set-Cookie: PART_NUMBER=ROCKET_LAUNCHER_0001; path=/")
1558 self.assertEqual(req.get_header("Cookie"),
1562 "Set-Cookie: PART_NUMBER=RIDING_ROCKET_0023; path=/ammo")
1569 self.assertRegex(req.get_header("Cookie"),
1599 # Cookie reflects user's identity.
1610 # Cookie: $Version="1"; Customer="WILE_E_COYOTE"; $Path="/acme"
1633 # Cookie: $Version="1";
1660 # Cookie: $Version="1";
1713 # Cookie: $Version="1";
1728 # Cookie: $Version="1"; Part_Number="Rocket_Launcher_0001"; $Path="/acme"
1902 headers.append("Set-Cookie: Customer=WILE_E_COYOTE; domain=.acme.com")
1909 headers.append("Set-Cookie: PART_NUMBER=3,4; domain=foo.bar.acme.com")
1915 self.assertIn("PART_NUMBER=3,4", req.get_header("Cookie"))
1916 self.assertIn("Customer=WILE_E_COYOTE",req.get_header("Cookie"))
1948 # Set-Cookie: JSESSIONID=ABCDERANDOM123; Path=
1956 headers.append("Set-Cookie: JSESSIONID=ABCDERANDOM123; Path=")
1963 self.assertEqual(req.get_header("Cookie"),
1971 self.assertEqual(req.get_header("Cookie"),
1983 headers.append("Set-Cookie: s1=session;Path=/scripts")
1984 headers.append("Set-Cookie: p1=perm; Domain=.perlmeister.com;"
1987 headers.append("Set-Cookie: p2=perm;Path=/;expires=Fri, "
1989 headers.append("Set-Cookie: s2=session;Path=/scripts;"