in reply to posting to a form to get results
As you can see here, you are posting to the wrong URL.<form action=monthresultslist.asp method=post> ...
#!/usr/bin/perl -w use strict; use WWW::Mechanize; my $url = 'http://www.gulfgreyhound.com/officialracingresults.asp'; my $robot = new WWW::Mechanize; $robot->get($url); $robot->form_number('1'); $robot->set_fields('subfolder' => 'dec03'); $robot->click(); # Get the reply to my question my $html = $robot->content(); print "$html";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: posting to a form to get results
by Anonymous Monk on Dec 24, 2003 at 23:07 UTC | |
|
Re: Re: posting to a form to get results
by ysth (Canon) on Dec 24, 2003 at 22:49 UTC |