SyntaxFix
Write A Post
Hire A Developer
Questions
I did it by passing the cookie through the HttpContext:
HttpContext localContext = new BasicHttpContext(); localContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore); response = client.execute(httppost, localContext);