tags:

views:

43

answers:

1

I have a cookie that is formatted like partA:partB. The colon is not escaped in any fashion. I need to read this cookie in a JSP script, and request.getCookies() is only returning partA. I can't change the cookie because it is used in multiple applications, and fixing the cookie would break production code. Any ideas how I can read the full value of this cookie?

+2  A: 

You should be able to read the Cookie header directly using the HttpServletRequest.

McDowell
Thank you. I had not thought of that.
jsumners