From: Paul B. <pa...@em...> - 2003-02-26 17:09:07
|
> -----Original Message----- > From: htm...@li... > [mailto:htm...@li...]On Behalf Of Mike > Bowler > Sent: Wednesday, February 26, 2003 8:00 AM > To: htm...@li... > Subject: Re: [HtmlUnit] Cookie support? > > > > 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? HtmlUnit 1.1 > 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. After I downloaded and replaced that JAR, everything works fine! Thank you so much! -Paul |