in reply to WWW::Mechanize redirection problem

I would think that sleeping for a second or two on the redirect might help. Also check for values that your browser may be POST'ing when the redirect is thrown. These are the two things that have screwed me up in the past with WWW::Mechanize.

Replies are listed 'Best First'.
Re^2: WWW::Mechanize redirection problem
by thinc (Novice) on Nov 28, 2006 at 22:03 UTC
    I had problems with redirected posts as well. See LWP::UserAgent Docs. LWP::UserAgent does not follow redirects for posts by default, you have to tell it you want to do that.

    Since WWW::Mechanize is a subclass of LWP::UserAgent, you should be able to:
    push @{ $mech->requests_redirectable }, 'POST';