[Webtest] Cookie Problem

Marc Guillemot Marc Guillemot <mguillemot@yahoo.fr>
Tue, 23 Jan 2007 01:21:41 -0800 (PST)


Interesting. Cookies are not sent by htmlunit directly but by Jakarta's
common httpclient which is the underlying layer. It allows different cookie=
s
policy. I suppose that this is what governs the format of the cookies sent
to the server.
Have you tried with IE too?

Marc.



Markus Maier wrote:
>=20
> I have found the problem.=20
>=20
> It was in my parsing Cookie function.
>=20
> webtest sends somithing like:
> bla=3Dbla; path=3D\;
>=20
> and firefox:
> bla=3Dbla (without semicolon and path)
>=20
> This was the problem. Thanks for your support.
>=20
> Kind regards,
> Markus
>=20
>=20
>> -----Urspr=C3=BCngliche Nachricht-----
>> Von: webtest@lists.canoo.com
>> Gesendet: 16.01.07 12:51:27
>> An: webtest@lists.canoo.com
>> Betreff: Re: [Webtest] Cookie Problem
>=20
>=20
>> Markus Maier wrote:
>> > Hi
>> >=20
>> > First of all: Sorry for the missing subject and thanks for the fast
>> response.=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
>> invoke).=20
>> > But it seems that the received cookie will not be sent to the
>> webserver. Is this possible?
>> > I can't find anything in the documentation. (maybe I need a parameter
>> of invoke for cookie sending?)
>> > Does webtest send the received cookies automatically with each new
>> invoke? How is the sendig of cookies generally handled?
>> >=20
>> > BTW: I set the cookie now with: Set-Cookie: test=3Dbla; path=3D/;
>> >=20
>> > Maybe this line contains a error? But in the webbrowsers there is no
>> problem 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?
>>=20
>> Marc.
>> _______________________________________________
>> WebTest mailing list
>> WebTest@lists.canoo.com
>> http://lists.canoo.com/mailman/listinfo/webtest
>>=20
>=20
>=20
> _______________________________________________________________________
> Viren-Scan f=C3=BCr Ihren PC! Jetzt f=C3=BCr jeden. Sofort, online und ko=
stenlos.
> Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=3D022222
>=20
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>=20
>=20

--=20
View this message in context: http://www.nabble.com/Re%3A-Cookie-Problem-tf=
3015057.html#a8518004
Sent from the WebTest mailing list archive at Nabble.com.