in reply to [Solved] WWW::Mechnize redirect handling
shouldn't you be using $m->max_redirect(0); in order to get the headers of your first hit, checking if indeed you get a 302 status, then extract the token from headers of first URL and head for the login url?
bw, bliako
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: WWW::Mechnize redirect handling
by nikster (Novice) on Nov 22, 2019 at 18:20 UTC | |
by bliako (Abbot) on Nov 22, 2019 at 19:55 UTC | |
by nikster (Novice) on Nov 22, 2019 at 22:33 UTC | |
by bliako (Abbot) on Nov 23, 2019 at 08:39 UTC | |
by nikster (Novice) on Nov 23, 2019 at 14:55 UTC | |
|