in reply to Re^6: WIN32::IE::Mechanize - can't follow link - JavaScript involved
in thread WIN32::IE::Mechanize - can't follow link - JavaScript involved

It is because you make a GET and not a POST and you don't valorized some field.

Replace this in your code:

$url->query_form( 'CrdNumber' => "144549", 'NumRows' => "25", 'SearchType' => "2", 'ORG_PK' => "000", 'Save' => "IAPDSearch", ) ; my $response = LWP::UserAgent->new->post($url) ;

and it will work.

Rule One: Do not act incautiously when confronting a little bald wrinkly smiling man.

  • Comment on Re^7: WIN32::IE::Mechanize - can't follow link - JavaScript involved
  • Download Code

Replies are listed 'Best First'.
Re^8: WIN32::IE::Mechanize - can't follow link - JavaScript involved
by Ninth Prince (Acolyte) on May 22, 2008 at 20:37 UTC
    Thanks again for all you help. It works perfectly now!