6 messages in com.canoo.lists.webtestRe: [Webtest] RE: How do I deal with ...
FromSent OnAttachments
Chris Gerrard14 Apr 2006 16:50 
Michael Knapp14 Apr 2006 17:08 
Marc Guillemot18 Apr 2006 01:56 
Marc Guillemot18 Apr 2006 03:58 
Paul King18 Apr 2006 04:04 
Paul King18 Apr 2006 06:27 
Subject:Re: [Webtest] RE: How do I deal with recirection? - "Redirect requested but followRedi
From:Paul King (pau@asert.com.au)
Date:04/18/2006 04:04:53 AM
List:com.canoo.lists.webtest

Again this should be in a FAQ.

Adding <header name="followRedirects" value="true" /> to your config tells HtmlUnit to honour client-side redirects based on the <meta> tag, e.g. within <head>...</head> you would have:

<meta http-equiv="refresh" content="0; URL=autoRefresh2.jsp">

which would load the referenced jsp after (in this case) 0 seconds.

But note that client-side redirects using this mechanism are generally discouraged for accessibility reasons:

http://www.w3.org/TR/WCAG10-HTML-TECHS/

Cheers, Paul.

Marc Guillemot wrote:

Hi,

I should write a FAQ somewhere...

"Redirect requested but followRedirects is disabled" is a message from commons-httpclient. Htmlunit disables the redirect at this level to be able to hanlde them itself. Therefore these messages are absolutely without any signification.

Mike, what is <header name="followRedirects" value="true" /> good for? I suppose that it only adds an http header to all the requests that are performed to your webserver and unless this one expects them (what would be really strange), it shouldn't bring anything.

Marc. -- View this message in context:
http://www.nabble.com/How-do-I-deal-with-recirection---%22Redirect-requested-but-followRedirects-is-disabled%22-t1452382.html#a3964400 Sent from the WebTest forum at Nabble.com.