in reply to Re^3: redirection loop
in thread redirection loop

Thanks for your reply.
I don't think the redirect option is set to 0, because in most cases (80%) the LWP::UserAgent redirection works fine.
This is what I get when I print the retrieved page header:

Date: Mon, 15 May 2006 14:08:20 GMT
Location: /libweb/australia/do/login
Server: Apache Tomcat/4.1.12 (HTTP/1.1 Connector)
Content-Length: 65
Content-Type: text/html; charset=UTF-8
Client-Date: Mon, 15 May 2006 14:05:43 GMT
Client-Response-Num: 1
Client-Warning: Redirect loop detected

The page itself is an error message.
I don't think that there are more than 7 redirections, because when I can redirect it manually without too much trouble (although I don't want to use this solution). If you have any other ideas I would be happy to hear them.
Thanks,
Guy Naamati

Replies are listed 'Best First'.
Re^5: redirection loop
by ruzam (Curate) on May 16, 2006 at 17:09 UTC
    Well, you've pretty much tapped me out (not that I had alot to offer to start with) :)

    It looks to me like you've hit a login page? Maybe the login is incorrect, so the login page redirects to an error page, possibly with a timed refesh to return back to the login page. Javascript performs the time delay, so if you hit the site manually with a browser it all looks appropriate. UserAgent doesn't understand javascript, but sees the redirect and takes it. Full circle. The page itself may even be looking for an agent that it believes can handle the javascript timed redirect, chosing to skip the javascript and redirect immediately.

    At least that's what I'd suspect...