Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
If someone has time, would you mind telling me what I'm doing wrong or missing?use warnings; use strict; use WWW::Mechanize; my $mech = WWW::Mechanize->new(); my $id = '14632'; my $url = "http://home.myspace.com/index.cfm?". "fuseaction=user.viewfriends&". "friendID=" . $id; $mech->get( $url ); my $page = 2; my ($viewstate) = $mech->content =~ m/name="__VIEWSTATE".+value="([^"] ++)"/io; my $form = $mech->form_name('aspnetForm'); $form->value('__EVENTTARGET' => 'ctl00$cpMain$pagerTop'); $form->value('__EVENTARGUMENT' => $page); $form->value('__VIEWSTATE' => $viewstate); $mech->submit(); print $mech->content;
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to submit hidden forms
by Cody Pendant (Prior) on Jan 31, 2007 at 04:11 UTC | |
|
Re: How to submit hidden forms
by Herkum (Parson) on Jan 31, 2007 at 04:50 UTC | |
|
Re: How to submit hidden forms
by CountZero (Bishop) on Jan 31, 2007 at 05:55 UTC | |
|
Re: How to submit hidden forms
by andyford (Curate) on Jan 31, 2007 at 17:42 UTC | |
|
Re: How to submit hidden forms
by lv211 (Beadle) on Feb 01, 2007 at 20:07 UTC | |
by Anonymous Monk on Feb 01, 2007 at 20:24 UTC | |
|
Re: How to submit hidden forms
by Anonymous Monk on Jan 31, 2007 at 07:34 UTC |