I need to read from an URL to String, and this is not a problem, but some sites demand for cookies to be enabled to provide content. So I need a way to get a content even if the cookies need to be accepted? Cheers
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.
You may give it a try to Apache’s HTTPClient: http://hc.apache.org/httpclient-3.x/
It has support a lot of things. I don’t remember if cookies are included, but I bet it does.
EDIT
It does 🙂
http://hc.apache.org/httpclient-3.x/cookies.html