Eric Brunson
brunson at brunson.com
Mon Oct 30 17:11:18 EST 2006
Graham Dumpleton wrote: > Clodoaldo Pinto Neto wrote .. > >> 2006/10/29, Graham Dumpleton <grahamd at dscpl.com.au>: >> >>> Clodoaldo Pinto Neto wrote .. >>> >>>> 2006/10/29, Graham Dumpleton <grahamd at dscpl.com.au>: >>>> IMHO, the least surprise behavior is if Cookie.get_cookies() returned >>>> all cookies of the given class regardless of how many different cookie >>>> classes there are in the header. >>>> >>> There is nothing in a cookie string though to be able to identify it >>> >> as being >> >>> of a particular type. The only way you can know is to try and decode >>> >> it and >> >>> if it works then it probably is. >>> >> It is exactly what MarshalCookie.parse() does: >> > > But it is still an assumption because they aren't tagged as being of a > particular type. :-) > "When faced with ambiguity resist the temptation to guess" ;-) I have nothing useful to contribute to this discussion, but I thought that was pertinent. e.
|