From: Mike B. <mb...@Ga...> - 2003-02-26 16:03:49
|
> However, it doesnt look > like cookies are supported in the WebClient class - is this true, or > have I missed something? The pages I am testing rely almost > completely on a session cookie in the browser, so it just keeps giving > me back the login screen even after I have submitted the form. Any cookies sent down from the server will be returned on the next request so session cookies should certainly be working. What version of HtmlUnit are you using? The cookie support is actually provided by commons-httpclient so you might want to try using a newer version of that - "alpha3" is the latest release. http://www.ibiblio.org/maven/commons-httpclient/jars/ There have been a number of problems reported that seem to be a problem with the version of commons-httpclient that I bundled with HtmlUnit 1.1. So far all of these have been fixed in the more recent builds of commons-httpclient. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |