Hi,

Is there the best of a preferred way to parse a session id from a cookie
header?  E.g.:

getMethod().getResponseHeader("Set-Cookie").getValue() returns
"JSESSIONID=1BA67B7945DD3DFF8E8A2BB4D28A8626; Path=/"

I could just run this trough a regexp, but I've been wondering if there is
something in the httpclient api that will do that for me already with a
simple call like Header.getCookieValue("JSESSIONID").  I've looked through
the JavaDoc and could find anything.
http://jakarta.apache.org/httpcomponents/httpclient-3.x/cookies.html doesn't
seem to cover this either.


thanks
Dmitry

Reply via email to