views:

79

answers:

0

When HtmlUnit hits a JavaScript redirect, it will run through it without skipping a beat.

If it hits one JavaScript redirect after another, it's impossible to tell which URLs it ran through -- only where it stopped.

Is there a way around this? I would like to know the URLs it redirected through before it hit an end.

I can disable normal 301 & 302 redirects by setting webClient.setRedirectEnabled(false), but that only covers server-side redirects.. So in the case of JS redirects, I can't find a way to tell where it's going or where it's been.