Subject: | UserAgent won't redirect to referrer page |
In UserAgent.pm, somewhere around line 486:
while ($r) {
if (++$count > 13 ||
$r->request->url->as_string eq $referral_uri->as_string) {
$response->header("Client-Warning" =>
"Redirect loop detected");
return $response;
}
Unfortunately there are pages that redirect to some kind of verification page if a certain cookie is not set. This verification then page sets the cookie, and redirects back to the original page. The page will only display if the cookie has been set. Arguably this is a rather stupid setup, but it does occur (observed in the wild, somewhere at wiley.com, an established publisher).
Because UserAgent only redirects to pages that are not equal to the referring page, retrieving such pages is currently not possible. Perhaps a simple option could be added to disable this check?