From: Ducloux V. <vdu...@co...> - 2005-04-25 15:33:39
|
Yhakns, I just gor the line to make cookie handling more permissive : System.setProperty("apache.commons.httpclient.cookiespec",=20 CookiePolicy.BROWSER_COMPATIBILITY); It may always help someone ... Victor Erskine, Chris a =E9crit : > HtmlUnit uses commons HttpClient underneath for it's processing. I=20 > think that there is a function within HttpClient that allows you to=20 > control cookie processing. > > =20 > > Chris Erskine > =20 > EDS Consulting Services > Colorado Springs, CO=20 > =20 > Phone: 719-265-5962 > Cell: 719-640-6488 > > -----------------------------------------------------------------------= - > > *From:* htm...@li...=20 > [mailto:htm...@li...] *On Behalf Of=20 > *Ducloux Victor > *Sent:* Monday, April 25, 2005 8:51 AM > *To:* htm...@li... > *Subject:* Re: [Htmlunit-user] Cookie error > > =20 > > I everyone, I hope this time I get some help from someone. According=20 > to the problem shown below i xould like to know how to disable cookie=20 > handling in htmlunit ? > This means that htmlUnit should act like a web browser that has=20 > refused to accept all cookies .... > > If anyone can help in a way or the other ........ > Thanks in advance, > > > > Ducloux Victor a =E9crit : > > 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 =E9crit : > > Hi everybody, I've started to use htmlUnit, i now browse into pages=20 > and test .... > > One problem is that i get this error : > > 21 avr. 2005 14:39:31 org.apache.commons.httpclient.HttpMethodBase=20 > processResponseHeaders > ATTENTION: Invalid cookie header:=20 > "JSESSIONID=3D45720B71F325CE4449A6EF0A3A1C6CA6; Path=3D". Missing value= =20 > for path attribute > > this appears after i give my login information, and then the internet=20 > site i develop (should) store this cookie! since there is an error=20 > storing the cookie, i don't get logged and i come back to the login pag= e. > > Note that this site works well (the cookie storing) with firefox & ie=20 > so i don't think so , as ther error message tells, that there is an=20 > error in the path atribute ! > > What do you think, thanks again for the help ! > > Victor > > --=20 > > > Victor Ducloux | Stagiaire > T=E9l portable : > > *c o s m o s **b **a y **~ **v e c t i s* > > 10, rue du Faubourg Poissonni=E8re - 75010 Paris -=20 > www.cosmosbay-vectis.com <http://www.cosmosbay-vectis.com> > T=E9l g=E9n=E9ral : +33 1 53 24 67 80 - Fax : +33 1 53 24 67 89 > > 158, rue du 4 ao=FBt 1789 - 69100 Villeurbanne -=20 > www.cosmosbay-vectis.com <http://www.cosmosbay-vectis.com> > T=E9l. g=E9n=E9ral : +33 4 72 65 21 00 - Fax : +33 4 78 85 58 24 > > Chemin de Saint-Lambert, Actiburo 1, B=E2timent A - 13400 Aubagne -=20 > www.cosmosbay-vectis.com <http://www.cosmosbay-vectis.com> > T=E9l. g=E9n=E9ral : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 > > > Victor Ducloux | Stagiaire > T=E9l 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=E2timent A - 13400 Aubagne - > www.cosmosbay-vectis.com <http://www.cosmosbay-vectis.com> > T=E9l. g=E9n=E9ral : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 > --=20 Victor Ducloux | Stagiaire T=E9l portable : +33 6 60 41 76 03 *c o s m o s b a y ~ v e c t i s* 10, rue du Faubourg Poissonni=E8re - 75010 Paris - www.cosmosbay-vectis.com T=E9l g=E9n=E9ral : +33 1 53 24 67 80 - Fax : +33 1 53 24 67 89 158, rue du 4 ao=FBt 1789 - 69100 Villeurbanne - www.cosmosbay-vectis= .com T=E9l. g=E9n=E9ral : +33 4 72 65 21 00 - Fax : +33 4 78 85 58 24 Chemin de Saint-Lambert, Actiburo 1, B=E2timent A - 13400 Aubagne - www.cosmosbay-vectis.com T=E9l. g=E9n=E9ral : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 |