Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Filling in a form on a web page using perl

by davidrw (Prior)
on Aug 18, 2005 at 18:50 UTC ( [id://484921]=note: print w/replies, xml ) Need Help??


in reply to Filling in a form on a web page using perl

You might want to try to use WWW::Mechanize instead.. it can make this type of thing extremely easy:
use WWW::Mechanize; use strict; use warnings; my $mech = WWW::Mechanize->new; my $sequence = '...'; $mech->get('http://www.arabidopsis.org/Blast/'); $mech->submit_form( form_name => 'myForm', fields => { 'Algorithm' => 'blastx', 'BlastTargetSet' => 'ATH1_pep', 'QueryText' => $sequence, }, ); print $mech->content;
Note: your code had 'Algorithem' but the actual field element is 'Algorithm'

Replies are listed 'Best First'.
Re^2: Filling in a form on a web page using perl
by jonp (Novice) on Aug 18, 2005 at 19:49 UTC
    Thanks a bunch, Mechanize works great.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://484921]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-15 11:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found