in reply to Re^9: Cant get www:Mechanize to work
in thread Cant get www:Mechanize to work

My mistake.

So how can i see what is $mech actually sending?

Replies are listed 'Best First'.
Re^11: Cant get www:Mechanize to work
by Corion (Patriarch) on Jun 09, 2009 at 14:24 UTC
      But that i what i wrote i used....
      use LWP::UserAgent; $ua = LWP::UserAgent->new; $ua->default_header('Accept-Encoding' => scalar HTTP::Message::decod +able()); $ua->add_handler("request_send", sub { shift->dump; return }); $ua->add_handler("response_done", sub { shift->dump; return }); $ua->get($mech->uri);
      And apparently it doest show the correct info????
        Earth to yantar, stop doing that! :)