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

Why do you expect that setting the User-Agent header on $mech will magically change the User-Agent header on $ua?

Replies are listed 'Best First'.
Re^10: Cant get www:Mechanize to work
by yantar (Initiate) on Jun 09, 2009 at 14:22 UTC
    My mistake.

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

        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????