2 messages in com.canoo.lists.webtestRe: [Webtest] RE: INFO: Redirect requ...
FromSent OnAttachments
Marco Neri18 Jan 2005 14:53 
Paul King18 Jan 2005 19:03 
Subject:Re: [Webtest] RE: INFO: Redirect requested but followRedirects is disabled
From:Paul King (pau@asert.com.au)
Date:01/18/2005 07:03:00 PM
List:com.canoo.lists.webtest

Marco Neri wrote:

Hi

I'm seeing in the traces INFO: Redirect requested but followRedirects is disabled. This has been answered in htmlunit FAQ

http://htmlunit.sourceforge.net/faq.html#RedirectionDiagnosticMessages

but can someone confirm if setting autorefresh="true" in config.xml is how to turn on redirection?

thanks

If your application uses client-side redirects (no longer encouraged), e.g. the html received by the browser has a line such as:

<meta http-equiv="refresh" content="2; URL=xxxx">

Then you need to turn on autorefresh="true" in your config.

If your application under test does server-side redirects (preferred these days) then you don't need to do anything. WebTest (via HtmlUnit (via HttpClient)) handles these automatically.

I think you can also actually turn off all redirects using: <option name="RedirectEnabled" value="false" /> in your config but I can't think of any reason why you would want to do that.

You will still have to ignore the warning messages from HttpClient for now.

Cheers,

Paul.