Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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

by gjb (Vicar)
on Aug 18, 2005 at 18:47 UTC ( #484918=note: print w/replies, xml ) Need Help??

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

First of, note that what you try to do might be illegal since a number of sites prohibit the use of scripts to interact with them. You'll have to check the end user agreement to make sure.

Technically, a number of things went wrong, see the code below for something that seems to work:

my $URL = ""; #BLASTX:NT query, AA db ->blastx #AGI Proteins (Protein) ->ATH1_pep #query sequence ->QueryText my $response = $browser->post( $URL, [ 'Algorithm' => 'blastx', 'BlastTargetSet' => 'ATH1_pep', 'QueryText' => $sequence, 'ReplyTo' => '' ] );
The URL for the request was wrong, the first parameter is 'Algorithm' and not 'Algorithem' and you need to supply an email address, apparently.

Hope this helps, -gjb-

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://484918]
LanX zooming holli s picture seeking onion
[holli]: Oh, seems like LanX' team has won the fourth World Cup ... awesome!
LanX grins
[marto]: anyway, don't come to Glasgow for the football :)
[holli]: the hell? i have a scriptblocker on.
[holli]: how do you update a different window without javascript?
[holli]: ah, chatterbox right
[marto]: it's a normal HTML form, with some hidden input fields
[holli]: forgot that thing exists for a moment.

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (13)
As of 2017-12-14 16:10 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (398 votes). Check out past polls.