On Wed, 2008-10-29 at 00:28 +0000, sebb wrote: > Any solution so long as RFC2965 does not treat Set-Cookie as if it > were a Set-Cookie2. > That seems wrong to me, because of the different domain rules. > > It can throw an exception or treat the cookie as Netscape and/or RFC2109. > I think throwing an exception is better, as otherwise there is > effectively no difference between RFC2965 and BestMatchSpec. >
All right. I changed the RFC2965 to reject Set-Cookie headers as unrecognized. When RFC2965 is used as a standalone cookie policy HttpClient will log a warning message for all cookies the spec fails to recognize. > Question is: if someone chooses to use a specific spec rather than > BestMatch - what are they expecting to happen? If you choose RFC2109 > and a Set-Cookie2 header arrives, what happens? Browser compatible and Netscape specs will ignore Set-Cookie2 headers. RFC2109 will reject them as unrecognized. Oleg > I think the code needs > to be consistent in how it handles cookies that are compliant with a > different spec. from the one selected; seems to me throwing an > exception may be the most useful. > > > > > Oleg > > > > > > > > Oleg > > > > > > > > > > > > > S/// > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
