I had to do the following in a test script to get Mechanize to do what I wanted:
You would then probably need to get the redirect URL from the response and issue another request to that.# turn off following redirects $mech->requests_redirectable( [] );
That, or maybe set the redirect limit to 1 or look into $mech->redirect_ok().
In reply to Re: redirection issue with WWW::Mechanize
by boftx
in thread redirection issue with WWW::Mechanize
by Special_K
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |