2010.05.31 GAEã§CookieJar --ä¿®æ£ç-- ã«ãã´ãªï¼GAE ååã®ã³ã¼ãã§ã¯cookieã®å¤ã«ã«ã³ã(',')ãå«ã¾ãã¦ããå ´å 使ããªããã¨ããããã¾ããã ãã®ä¿®æ£ã¨LWPcookieãæååã§è¿ãæ©è½ åã³æååãããã¼ãããæ©è½ãä»ãã¾ããã #gaecookielib.py # -*- coding:utf-8 -*- from cookielib import CookieJar, LWPCookieJar import re, cStringIO def reparse(name, s_list): #set-cookie以å¤ã¯ãã®ã¾ã¾ if not name.lower().startswith('set-cookie'): return s_list cklines=[] for _s in s_list: _s=_s.split(',') ckl
{{#tags}}- {{label}}
{{/tags}}