[Webtest] Cookie Problem

Markus Maier Markus Maier <haustuere@web.de>
Wed, 17 Jan 2007 16:26:26 +0100


I have found the problem.=20

It was in my parsing Cookie function.

webtest sends somithing like:
bla=3Dbla; path=3D\;

and firefox:
bla=3Dbla (without semicolon and path)

This was the problem. Thanks for your support.

Kind regards,
Markus


> -----Urspr=FCngliche Nachricht-----
> Von: webtest@lists.canoo.com
> Gesendet: 16.01.07 12:51:27
> An: webtest@lists.canoo.com
> Betreff: Re: [Webtest] Cookie Problem


> Markus Maier wrote:
> > Hi
> >=20
> > First of all: Sorry for the missing subject and thanks for the fast re=
sponse.=20
> >=20
> >> I think that the meta http-equiv set-cookie is not currently handled =
in=20
> >> htmlunit.
> >=20
> > Yeah. I solved this by setting the cookie in the http header (now stor=
e and verifyCookie) works. Thanks for the hint.=20
>=20
> nevertheless you should open an issue if you discover something like=20
> that to help improving it otherwise you will have to find a workaround=20
> next time again.
> This is now fixed in htmlunit's SVN.
>=20
> >=20
> > But there is also another problem:
> > After store and verify I want to call another page (Just another invok=
e).=20
> > But it seems that the received cookie will not be sent to the webserve=
r. Is this possible=3F
> > I can't find anything in the documentation. (maybe I need a parameter =
of invoke for cookie sending=3F)
> > Does webtest send the received cookies automatically with each new inv=
oke=3F How is the sendig of cookies generally handled=3F
> >=20
> > BTW: I set the cookie now with: Set-Cookie: test=3Dbla; path=3D/;
> >=20
> > Maybe this line contains a error=3F But in the webbrowsers there is no p=
roblem with that.=20
>=20
> cookies are automatically handled and should be sent when appropriate=20
> according to host and secure attributes.
> What are the host, port and protocol of both requests=3F
>=20
> Marc.
> =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>=20


=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
Viren-Scan f=FCr Ihren PC! Jetzt f=FCr jeden. Sofort, online und kostenlos.
Gleich testen! http://www.pc-sicherheit.web.de/freescan/=3Fmc=3D022222