code: def extract_cookiejar(self):
          
  
          # Example of line:
          # www.google.com\tFALSE\t/accounts/\tFALSE\t0'
          # \tGoogleAccountsLocale_session\ten
          # Fields:
          # * domain
          # * whether or not all machines under that domain can
          # read the cookie's information.
          # * path
          # * Secure Flag: whether or not a secure connection (HTTPS)
          # is required to read the cookie.
          # * exp. timestamp
          # * name
          # * value
          cookiejar = CookieJar()
          for line in self.curl.getinfo(pycurl.INFO_COOKIELIST):
              values = line.split('\t')
              domain = values[0].lower()
              if domain.startswith('#httponly_'):
                  domain = domain.replace('#httponly_', '')
                  httponly = True
              else:
                  httponly = False
              # old
              # cookies[values[-2]] = values[-1]
              # new
              cookie = create_cookie(
                  name=values[5],
                  value=values[6],
                  domain=domain,
                  path=values[2],
                  secure=values[3] == "TRUE",
                  expires=int(values[4]) if values[4] else None,
                  httponly=httponly,
              )
              cookiejar.set_cookie(cookie)
          return cookiejar
docs: Extract cookies that pycurl instance knows.
  
          Returns `CookieJar` object.