The Jetty client is pretty good at what it does but it is not clear to me how can I create something like a cookiejar which will be updated on every time the server sends a new cookie header? Is there such a thing?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If using Java 6, you can use a CookieManager if you’re using UrlConnection. There are a few standard implementations that might do what you want. If using another http client, there’s probably a similar facility, but you can always get cookies from the responses and add them on the following requests.