MCPcopy
hub / github.com/pyload/pyload / getCookies

Method getCookies

module/network/HTTPRequest.py:154–159  ·  view source on GitHub ↗

add cookies from cj to curl handle

(self)

Source from the content-addressed store, hash-verified

152 self.cj.addCookies(self.c.getinfo(pycurl.INFO_COOKIELIST))
153
154 def getCookies(self):
155 """ add cookies from cj to curl handle """
156 if self.cj:
157 for c in self.cj.getCookies():
158 self.c.setopt(pycurl.COOKIELIST, c)
159 return
160
161 def clearCookies(self):
162 self.c.setopt(pycurl.COOKIELIST, "")

Callers 1

setRequestContextMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected