I take away all the cookies, and what I get is: JSESSION=234234fsdf23.
But I only need a value without JSESSION.
Please tell me how to do this?
Headers header = response.headers();
List<String> cookieList = header.values("Set-Cookie");
String jsessionid = (cookieList.get(0).split(";"))[0];