Marc, Paul, Thanks for your answers both solutions are working but I am a bit confused with the following line in my logs :
"[webtest] (httpclient.HttpMethodDirector 813 ) Redirect requested but followRedirects is disabled" This line appears even if I do not set any option on RedirectEnabled. That's why I am a bit disappointed ... What is the difference between followRedirects and RedirectEnabled ??? Arnaud Lesueur Le Ven 23 juin 2006 13:47, Paul King a écrit : > > Or in your config: > > > <config ...> > <option name="RedirectEnabled" value="false"/> > </config> > > > Marc Guillemot wrote: > >> Hi Arnaud, >> >> >> you can try to add following before your step 2: >> >> <groovy> >> step.context.webClient.redirectEnabled = false </groovy> >> >> >> Marc. >> >> >> Arnaud Lesueur wrote: >> >>> Hi, >>> >>> >>> My workflow is the following: >>> 1. request a login form >>> 2. post login/password to this login form >>> 3. here I receive an HTTP 302 from the server >>> 4. get the redirected URL >>> >>> >>> I would like to check information that I receive with the HTTP 302 such as >>> the set-cookie also check that I >>> really have a HTTP 302 as response status. >>> >>> Is it possible to do this ? >>> >>> >>> Canoo follows the HTTP 302 redirect and when I'm trying to do a >>> storeHeader, storeResponseCode and storeCookie >>> Canoo >>> returns the information from the step 4. >>> >>> I've also tryed to use previousReponse but it return to step 1 in that case. >>> >>> >>> So my question is : How do I get header elements from the step 3 ? >>> >>> >>> >>> Any help would be greet, >>> >>> >>> >>> Arnaud Lesueur >>> >>> >>> _______________________________________________ >>> WebTest mailing list >>> [email protected] >>> http://lists.canoo.com/mailman/listinfo/webtest >>> >>> >>> >> >> _______________________________________________ >> WebTest mailing list >> [email protected] >> http://lists.canoo.com/mailman/listinfo/webtest >> >> >> > > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest > > > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

