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

Thanx.
I noticed the User- Agent is not the same so i used:
my $mech = WWW::Mechanize->new( agent => 'Windows IE 6');
but i still get:
User-Agent: libwww-perl/5.822

why?

Replies are listed 'Best First'.
Re^5: Cant get www:Mechanize to work
by marto (Cardinal) on Jun 09, 2009 at 11:42 UTC
      I also tried that before using:
      $mech->agent_alias( 'Windows IE 6' );
      But i get the same result.
        use WWW::Mechanize 1.54; warn WWW::Mechanize->new->agent; my $mech = WWW::Mechanize->new( agent => 'Windows IE 6'); warn $mech->agent; $mech->agent_alias( 'Windows IE 6'); warn $mech->agent; __END__ WWW-Mechanize/1.54 at - line 2. Windows IE 6 at - line 4. Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) at - line 6.