I\'m working on a script that logs into WordPress, however, HttpClient\'s cookie policy identifies the cookies set by WordPress to be invalid:
May 17, 2009 1
Check this post for further hints: Java HtmlUnit - can't login to wordpress
In similar situations I was able to use the following code (although I admit it doesn't work in the specific wordpress case):
HttpClient client = new HttpClient();
client.getParams().setParameter("http.protocol.single-cookie-header", true);
client.getParams().setCookiePolicy(CookiePolicy.BROWSER_COMPATIBILITY);