Handling empty cookies in client side

Hi everybody,

I'm currently working with the client-side API of the version 2.2.0.

When I request to an IIS for a URL, that "server" reply with an 
HttpSetCookieList with empty cookies, first of witch throws an 
"HttpInvalidValueException: No value for attribute [xx]" when it is parsed.

RFCs read it is correct for an empty value to be an error, so library seems 
to be correct. Then my problem is how to bypass it, because I cannot modify 
the asp running in the server.

Here is the Exceptions stack trace:
Exception in thread "main" org.w3c.www.http.HttpInvalidValueException: No 
value for attribute [xx]
   at org.w3c.www.http.BasicValue.validate(BasicValue.java:74)
   at 
org.w3c.www.http.HttpSetCookieList.getSetCookies(HttpSetCookieList.java:231)
   at 
org.w3c.www.protocol.http.cookies.CookieFilter.outgoingFilter(CookieFilter.java:426)
   at org.w3c.www.protocol.http.HttpManager.runRequest(HttpManager.java:724)
   at Firloyo.main(Firloyo.java:63)

Should I subclass HttpSetCookieList and CookieFilter to obtain a patched 
filter and attach it to the Manager global filter? Or is there an easier way 
to do so?

Regards,
J. Mercader

_________________________________________________________________
Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp

Received on Wednesday, 14 November 2001 10:46:16 UTC