Lines Matching refs:cookie
20 def lwp_cookie_str(cookie):
21 """Return string representation of Cookie in an the LWP cookie file format.
26 h = [(cookie.name, cookie.value),
27 ("path", cookie.path),
28 ("domain", cookie.domain)]
29 if cookie.port is not None: h.append(("port", cookie.port))
30 if cookie.path_specified: h.append(("path_spec", None))
31 if cookie.port_specified: h.append(("port_spec", None))
32 if cookie.domain_initial_dot: h.append(("domain_dot", None))
33 if cookie.secure: h.append(("secure", None))
34 if cookie.expires: h.append(("expires",
35 time2isoz(float(cookie.expires))))
36 if cookie.discard: h.append(("discard", None))
37 if cookie.comment: h.append(("comment", cookie.comment))
38 if cookie.comment_url: h.append(("commenturl", cookie.comment_url))
40 keys = cookie._rest.keys()
43 h.append((k, str(cookie._rest[k])))
45 h.append(("version", str(cookie.version)))
70 for cookie in self:
71 if not ignore_discard and cookie.discard:
73 if not ignore_expires and cookie.is_expired(now):
75 r.append("Set-Cookie3: %s" % lwp_cookie_str(cookie))