Lines Matching defs:Cookie
28 __all__ = ['Cookie', 'CookieJar', 'CookiePolicy', 'DefaultCookiePolicy',
56 NETSCAPE_MAGIC_RGX = re.compile("#( Netscape)? HTTP Cookie File")
60 # Netscape HTTP Cookie File
469 The old Netscape cookie format for Set-Cookie can for instance contain
474 that Netscape Cookie headers contain. Ronald Tschalar's HTTPClient
743 class Cookie:
744 """HTTP Cookie.
749 possible to construct Cookie instances that don't comply with the cookie
750 standards. CookieJar.make_cookies is the factory function for Cookie
824 return "<Cookie %s for %s>" % (namevalue, limit)
1313 # set version of Cookie header
1315 # What should it be if multiple matching Set-Cookie headers have
1327 # intact, due to the poorly-specified Netscape Cookie: syntax)
1334 # add cookie-attributes to be returned in Cookie header
1357 """Add correct Cookie: header to request (urllib.request.Request object).
1372 if not request.has_header("Cookie"):
1374 "Cookie", "; ".join(attrs))
1393 the Set-Cookie or Set-Cookie2 headers.
1542 # Cookie should then only be sent back on that port.
1548 # No port attr present. Cookie can be sent back on any port.
1566 return Cookie(version,
1600 """Return sequence of Cookie objects extracted from response object."""
1604 ns_hdrs = headers.get_all("Set-Cookie", [])
1633 # Look for Netscape cookies (from Set-Cookie headers) that match
1832 """Return string representation of Cookie in the LWP cookie file format.
1959 c = Cookie(h("version"), name, value,
2003 specified by the Set-Cookie2 (or Set-Cookie) header, and whether or not the
2049 # cookies.txt regards 'Set-Cookie: foo' as a cookie
2064 c = Cookie(0, name, value,
2113 # cookies.txt regards 'Set-Cookie: foo' as a cookie