Hi, I have an application that communicates with a Win32/Delphi client app (in a quasi web-services fashion). The server sends cookies in the format: ID1="VALUE1", ID2="VALUE2", ID3="VALUE3".
In Tomcat 4.0.x using the "legacy" catalina HTTP connector this style of cookie was passed back to the client without error. After migrating to Tomcat 4.1.x and the coyote HTTP connector I received an InvalidArgument exception on calling HttpServletResponse.addCookie() with the string value as described above. Poking about in the code () I see that the comma is a "special" character and ultimately causes the error. Looking at the cookie I can see how when it is written into the HTTP headers how it might be a problem... I think it might violate the spec somehow. Can someone confirm this? I don't know how the legacy HTTP connectors wrote the actual HTTP response header (I haven't traced that so far), but it works for my particular client. Is there some way to tell the coyote connector to act like the legacy connector? Should I use the "version 1" setting? Matt.
