Interesting. Cookies are not sent by htmlunit directly but by Jakarta's common httpclient which is the underlying layer. It allows different cookies 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: > > I have found the problem. > > It was in my parsing Cookie function. > > webtest sends somithing like: > bla=bla; path=\; > > and firefox: > bla=bla (without semicolon and path) > > This was the problem. Thanks for your support. > > Kind regards, > Markus > > >> -----Ursprüngliche Nachricht----- >> Von: [email protected] >> Gesendet: 16.01.07 12:51:27 >> An: [email protected] >> Betreff: Re: [Webtest] Cookie Problem > > >> Markus Maier wrote: >> > Hi >> > >> > First of all: Sorry for the missing subject and thanks for the fast >> response. >> > >> >> I think that the meta http-equiv set-cookie is not currently handled >> in >> >> htmlunit. >> > >> > Yeah. I solved this by setting the cookie in the http header (now store >> and verifyCookie) works. Thanks for the hint. >> >> nevertheless you should open an issue if you discover something like >> that to help improving it otherwise you will have to find a workaround >> next time again. >> This is now fixed in htmlunit's SVN. >> >> > >> > But there is also another problem: >> > After store and verify I want to call another page (Just another >> invoke). >> > 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? >> > >> > BTW: I set the cookie now with: Set-Cookie: test=bla; path=/; >> > >> > Maybe this line contains a error? But in the webbrowsers there is no >> problem with that. >> >> cookies are automatically handled and should be sent when appropriate >> according to host and secure attributes. >> What are the host, port and protocol of both requests? >> >> Marc. >> _______________________________________________ >> WebTest mailing list >> [email protected] >> http://lists.canoo.com/mailman/listinfo/webtest >> > > > _______________________________________________________________________ > Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos. > Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=022222 > > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest > > -- View this message in context: http://www.nabble.com/Re%3A-Cookie-Problem-tf3015057.html#a8518004 Sent from the WebTest mailing list archive at Nabble.com. _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

