6 messages in com.canoo.lists.webtestRe: [Webtest] Getting headers on a HT...| From | Sent On | Attachments |
|---|---|---|
| Arnaud Lesueur | 23 Jun 2006 01:45 | |
| Marc Guillemot | 23 Jun 2006 04:18 | |
| Paul King | 23 Jun 2006 04:46 | |
| Arnaud Lesueur | 23 Jun 2006 05:00 | |
| Marc Guillemot | 23 Jun 2006 05:21 | |
| Arnaud Lesueur | 23 Jun 2006 05:29 |
| Subject: | Re: [Webtest] Getting headers on a HTTP 302 redirect![]() |
|---|---|
| From: | Arnaud Lesueur (ales...@octo.com) |
| Date: | 06/23/2006 05:00:49 AM |
| List: | com.canoo.lists.webtest |
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 WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest




