hNa,@ddlZddlmZddlmZddlZddZdZdZy)N)cookies)parsecNtj}tj|}t	|}tj|}|||<t|dk7rt|dz}|||d<d||d<tjdk(r
td|dt|y)	NriQzmax-age/pathtestzSET COOKIE=><br>)	rSimpleCookierquotestrintconfigRUN_MODEprint)namevalueexpirecmaxAges     5/home/sultans/web/python/demo/5cookie/shop1/COOKIE.pysetrsAKKDJEKKEAdG
6{aV)#$	AdGFO
nQv >	!Hci}tjjd}||S|jd}|D]1}|jdd\}}t	j
|}|||<3tjdk(r
td|d|S)NHTTP_COOKIEz; =rz	COOKIES=>r	)	osenvirongetsplitrunquoterrr)cookiesDict	cookieStrcookiesArraycookierrvalue2s       rgetAllr'!sK

}-I??4(LS+
uu%"D
k+f Erct}	|j|}tjdk(rt	d||d|S#d}Y)xYw)NrzCOOKIE=>r	)r'rrrr)r
allCookiesrs   rrr6sHJt$jeF CL	sAA)r)	rhttprurllibrrrr'rrr<module>r.s"




&*	r