Marco Neri wrote:
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.