"be consistent" | |
PerlMonks |
Re^4: redirection issue with WWW::Mechanizeby Special_K (Monk) |
on May 23, 2014 at 05:54 UTC ( [id://1087158]=note: print w/replies, xml ) | Need Help?? |
OK, I solved it. The following does work:
but only if you do NOT also have this in your code:
Alternately, you can also just parse the content returned by:
when the page containing the redirect is first loaded, and get the redirect URL from that. Again, the key is that you must NOT have:
in your code. I think it's strange that if you enable redirects you still must manually retrieve the redirect URL, and if you disable redirects then even manually retrieving the URL doesn't work.
In Section
Seekers of Perl Wisdom
|
|