4 messages in com.canoo.lists.webtestRE: [Webtest] circular redirects| From | Sent On | Attachments |
|---|---|---|
| Saul Simhon | 07 Dec 2005 10:33 | |
| Marc Guillemot | 08 Dec 2005 05:30 | |
| Saul Simhon | 08 Dec 2005 06:57 | |
| Marc Guillemot | 09 Dec 2005 01:06 |
| Subject: | RE: [Webtest] circular redirects![]() |
|---|---|
| From: | Saul Simhon (sa...@cim.mcgill.ca) |
| Date: | 12/08/2005 06:57:25 AM |
| List: | com.canoo.lists.webtest |
I think that would seem like the direction to go. I would say that at least one loop should be permitted, perhaps anything more than one is bad!
In general, the problem is that it ignores the fact that the state of the requests may be changing on each redirect. While the redirects are 'looping', the states may change (cookies etc.) such that the redirect will stop under normal ops.
Btw: the error that I get is:
org.apache.commons.httpclient.CircularRedirectException: Circular redirect to...
Saul.
-----Original Message----- From: webt...@lists.canoo.com [mailto:webt...@lists.canoo.com] On Behalf Of Marc Guillemot Sent: Thursday, December 08, 2005 8:31 AM To: webt...@lists.canoo.com Subject: Re: [Webtest] circular redirects
Hi Saul,
you mean that you have something like:
GET /page1 sends redirect to /page2 sends redirect to /page1
and you get a "Refresh Aborted by HtmlUnit..."?
In this case it would perhaps make sense to change htmlunit's check for circular reference to allow a few (let's say 5 or 10) redirects to the same page before to throws the exception. What do you think?
Marc.
Saul Simhon wrote:
Hi,
I'm running into a problem with circular redirection. There is a scheme set up for automatic logins where a request to an initial page gets redirected to an auto login checker, which validates the auto login cookies and then redirected back to the original initial page with a flag set, such that the redirection is not performed again.
Unfortunately, this causes a circular-redirection exception to be thrown. I'm using ant with canoo tasks, but could not find a way around this. If anyone has an idea I would greatly appreciated. I know that there is a property that I can set: http.protocol.allow-circular-redirects=true. But not sure where it should be done?
Saul.
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest




