From: Brad C. <yo...@br...> - 2005-04-25 15:40:55
|
This -should- disable all cookies: CookiePolicy.registerCookieSpec(CookiePolicy.DEFAULT, CookiePolicy.IGNORE_COOKIES); References: http://jakarta.apache.org/commons/httpclient/3.0/cookies.html http://jakarta.apache.org/commons/httpclient/3.0/apidocs/org/apache/commons/httpclient/cookie/CookiePolicy.html#IGNORE_COOKIES You'll need to set it back to RFC_2109 when you're done since it's static. --- Ducloux Victor <vdu...@co...> wrote: > I everyone, I hope this time I get some help from someone. According to > the problem shown below i xould like to know how to disable cookie > handling in htmlunit ? > This means that htmlUnit should act like a web browser that has refused > to accept all cookies .... > > If anyone can help in a way or the other ........ > Thanks in advance, > > > > Ducloux Victor a écrit : > > > Hello, is anyone out there that can give a comment or any idea please ??? > > I'm really stuck with this problem ! > > > > thanks in advance > > > > > > > > Ducloux Victor a écrit : > > > >> Hi everybody, I've started to use htmlUnit, i now browse into pages > >> and test .... > >> > >> One problem is that i get this error : > >> > >> 21 avr. 2005 14:39:31 org.apache.commons.httpclient.HttpMethodBase > >> processResponseHeaders > >> ATTENTION: Invalid cookie header: > >> "JSESSIONID=45720B71F325CE4449A6EF0A3A1C6CA6; Path=". Missing value > >> for path attribute > >> > >> this appears after i give my login information, and then the > >> internet site i develop (should) store this cookie! since there is an > >> error storing the cookie, i don't get logged and i come back to the > >> login page. > >> > >> Note that this site works well (the cookie storing) with firefox & ie > >> so i don't think so , as ther error message tells, that there is an > >> error in the path atribute ! > >> > >> What do you think, thanks again for the help ! > >> > >> Victor > >> -- > >> > >> > >> Victor Ducloux | Stagiaire > >> Tél portable : > >> > >> *c o s m o s b a y ~ v e c t i s* > >> > >> 10, rue du Faubourg Poissonnière - 75010 Paris - > >> www.cosmosbay-vectis.com > >> Tél général : +33 1 53 24 67 80 - Fax : +33 1 53 24 67 89 > >> > >> 158, rue du 4 août 1789 - 69100 Villeurbanne - > >> www.cosmosbay-vectis.com > >> Tél. général : +33 4 72 65 21 00 - Fax : +33 4 78 85 58 24 > >> > >> Chemin de Saint-Lambert, Actiburo 1, Bâtiment A - 13400 Aubagne - > >> www.cosmosbay-vectis.com > >> Tél. général : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 > >> > > Victor Ducloux | Stagiaire > Tél portable : +33 6 60 41 76 03 > > *c o s m o s b a y ~ v e c t i s > * > > Chemin de Saint-Lambert, Actiburo 1, Bâtiment A - 13400 Aubagne - > www.cosmosbay-vectis.com > Tél. général : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 > > |