in reply to Re^3: use WWW::Mechanize or LWP to interface with WEB
in thread use WWW::Mechanize or LWP to interface with WEB
my $url = 'http://www.ancestry.com/'; my $mechObject = WWW::Mechanize->new(); $mechObject->get($url); die "can't get page!" unless $mechObject->success; die "can't find form!" unless $mechObject->form_number(0); my @values = ('learn', 'perl', [option => 'M']); die "couldn't fill out form!" unless $mechObject->set_visible(@values) == 3; $mechObject->submit; die "can't submit form!" unless $mechObject->success;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: use WWW::Mechanize or LWP to interface with WEB
by erroneousBollock (Curate) on Nov 16, 2007 at 07:47 UTC | |
by naikonta (Curate) on Nov 16, 2007 at 10:19 UTC | |
by learnperl (Acolyte) on Nov 16, 2007 at 18:22 UTC | |
by learnperl (Acolyte) on Nov 16, 2007 at 08:11 UTC |