File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
Java in General
Joined: Nov 28, 2010
Nov 28, 2010 08:36:10
Hi, I'm trying to use HtmlUnit to login to my local wordpress website but it seems to have a cookies issue.
That's that begining of the code:
WebClient webClient = new WebClient();
HtmlPage loginPage = webClient.getPage("http://localhost/flowersWp/wp-admin");
form = loginPage.getFormByName("loginform");
Nov 27, 2010 12:43:35 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies WARNING: Cookie rejected: "[version: 0][name: wordpress_2418eeb845ebfb96f6f1a71ab8c5625a][value: +][domain: localhost][path: /flowersWp/wp-admin][expiry: Fri Nov 27 12:43:35 IST 2009]". Illegal path attribute "/flowersWp/wp-admin". Path of origin: "/flowersWp/wp-login.php"
That's what I get in the log. Anyone has an idea? Thanks.
subject: Java HtmlUnit
Error 500- Internal servlet error
Tomcat 5 related question?
Error listenerStart : Using spring with tomcat
ADF MyFaces and HttpUnit testing
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015