If your page has a HTML form with a submit button and uses the POST method you can solve your problem very simply. Here is an example from the lwpcook manpage:
use HTTP::Request::Common qw(POST);
use LWP::UserAgent;
$ua = new LWP::UserAgent;
my $req = POST 'http://www.perl.com/cgi-bin/BugGlimpse',
[ search => 'www', errors => 0 ];
print $ua->request($req)->as_string;
All you have to do is set up a POST request message with all the fields in your HTML form (check boxes, text fields, and so on), with the correct URL. I hope this helps.
marcos
| [reply] [d/l] |
If your page has (except username/password) buttons and checkboxes, then it's a cgi script.
Just see which is the URL of the page called (or even better the form "action" as it might redirect you).
Then call that URL (or the action script) with the params you want on the Location bar, thus
simulating a form GET.
Even if it posts the form with a PUT, it should accept the parameters on the url if it's written with CGI.pm
(I don't know about others).
If that doesn't work, then I' m afraid I cannot help.
| [reply] |