in reply to Re^3: Cookie protected web page and file downloading
in thread Cookie protected web page and file downloading
#!/usr/bin/perl use Data::Dumper; use LWP::UserAgent; use WWW::Mechanize; my $mech = WWW::Mechanize->new(cookie_jar => {}, agent => "WWW-Mechani +ze/0.01"); $url = 'http://www.ibm.com/servers/eserver/support/pseries/aixfixes.ht +ml'; my $ua = new LWP::UserAgent; $ua->proxy('http','192.168.1.248'); $mech->get( $url ); $mech->follow_link( text_regex => qr/More fix services/); $mech->follow_link( text_regex => qr/AIX 5.3/); $mech->follow_link( text_regex => qr/Data file for AIX 5.3/); print Dumper $mech;
UPDATED
the print dump shows
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Cookie protected web page and file downloading
by tlm (Prior) on Jun 02, 2005 at 05:58 UTC | |
by Corion (Patriarch) on Jun 02, 2005 at 06:21 UTC |