def updateInstanceCookieValues(self): a = self.httpSession.getCookie(HTTPCookie('WSS_GW', '/', '.hitbox.com')) if a.getName(): self.pandaHTTPClientVarWSS = [ '.hitbox.com', '/', 'WSS_GW', a.getValue() ] else: # print 'WSS_GW Cookie Value not set' pass b = self.httpSession.getCookie(HTTPCookie('CTG', '/', '.hitbox.com')) if b.getName(): self.pandaHTTPClientVarCTG = [ '.hitbox.com', '/', 'CTG', b.getValue() ] else: # print 'CTG Cookie Value not set' pass c = self.httpSession.getCookie( HTTPCookie(self.hitboxAcct + 'V6', '/', 'ehg-dig.hitbox.com')) if c.getName(): self.pandaHTTPClientVarDM = [ 'ehg-dig.hitbox.com', '/', self.hitboxAcct + 'V6', c.getValue() ] else: #print self.hitboxAcct + 'V6 Cookie Value not set' pass del a, b, c
def updateInstanceCookieValues(self): a = self.httpSession.getCookie(HTTPCookie('WSS_GW', '/', '.hitbox.com')) if a.getName(): self.pandaHTTPClientVarWSS = [ '.hitbox.com', '/', 'WSS_GW', a.getValue() ] b = self.httpSession.getCookie(HTTPCookie('CTG', '/', '.hitbox.com')) if b.getName(): self.pandaHTTPClientVarCTG = [ '.hitbox.com', '/', 'CTG', b.getValue() ] c = self.httpSession.getCookie( HTTPCookie(self.hitboxAcct + 'V6', '/', '.ehg-dig.hitbox.com')) if c.getName(): self.pandaHTTPClientVarDM = [ '.ehg-dig.hitbox.com', '/', self.hitboxAcct + 'V6', c.getValue() ] del a del b del c
def updateInstanceCookieValuesOmniture(self): a = self.httpSession.getCookie(HTTPCookie('s_vi', '/', '.go.com')) if a.getName(): self.pandaHTTPClientVarSVI = [ '.go.com', '/', 's_vi', a.getValue()] del a
def setTheHTTPCookie(self, cookieParams): c = HTTPCookie(cookieParams[2], cookieParams[1], cookieParams[0]) c.setValue(cookieParams[3]) self.httpSession.setCookie(c)