Пример #1
0
 def parse_response(self, response):
     """parse and store cookie"""
     try:
         for header in response.msg.get_all("Set-Cookie"):
             cookie = header.split(";", 1)[0]
             cookieKey, cookieValue = cookie.split("=", 1)
             self._cookies[cookieKey] = cookieValue
     finally:
         return Transport.parse_response(self, response)
Пример #2
0
 def parse_response(self, response):
     """parse and store cookie"""
     try:
         for header in response.msg.get_all("Set-Cookie"):
             cookie = header.split(";", 1)[0]
             cookieKey, cookieValue = cookie.split("=", 1)
             self._cookies[cookieKey] = cookieValue
     finally:
         return Transport.parse_response(self, response)
Пример #3
0
 def parse_response(self, response):
     """parse and store cookie"""
     try:
         for header in response.getheader("set-cookie").split(", "):
             # filter 'expire' information
             if not header.startswith("D"):
                 continue
             cookie = header.split(";", 1)[0]
             cookieKey, cookieValue = cookie.split("=", 1)
             self._cookies[cookieKey] = cookieValue
     finally:
         return Transport.parse_response(self, response)
Пример #4
0
 def parse_response(self, response):
     """parse and store cookie"""
     try:
         for header in response.getheader("set-cookie").split(", "):
             # filter 'expire' information
             if not header.startswith("D"):
                 continue
             cookie = header.split(";", 1)[0]
             cookieKey, cookieValue = cookie.split("=", 1)
             self._cookies[cookieKey] = cookieValue
     finally:
         return Transport.parse_response(self, response)