in reply to Save cookies after post method, perl, mechanize, redirect

Maybe $mech->content() returns empty or Problem calling WWW::Mechanize redirect_ok might yield a clue? Possibly all you need is $mech->redirect_ok();

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
  • Comment on Re: Save cookies after post method, perl, mechanize, redirect

Replies are listed 'Best First'.
Re^2: Save cookies after post method, perl, mechanize, redirect
by deckoff (Novice) on May 08, 2014 at 18:34 UTC
    Hm, can you please show an example how its done? Truth is, that the called php script validates username/password, and redirects to home or to previous page