use LWP::UserAgent;
open STDOUT, ">aas713s";
my $browser = LWP::UserAgent->new;
$protein = "MGDHAWSFLKDFLAGGVAAAVSKTAVAPIERVKLLLQVQHASKQISAEKQYKGIIDCVVR";
my $SUSUI_URL = "http://www.ebi.ac.uk/Tools/services/web/toolform.ebi";
my $response = $browser->post( $SUSUI_URL, [ 'sequence' => $protein,],'tool'=>'iprscan','Content_Type' => 'form-data','sumbit'=>'sumbit');
if ($response->is_success) {
print $response->content;
} else {
print "Bad luck this time\n";
}作者: ghui501 时间: 2011-08-08 22:19
use strict;
use warnings;
use File::Slurp;
use LWP;
open(WF,">result.html") or die $!;
my $browser = LWP::UserAgent->new();
my $protein = "MSSSTPFDPYALSEHDEERPQNVQSKSRTAELQAEIDDTVGIMRDNINKVAERGERLTSI";
my $response = $browser->post(
'http://www.ebi.ac.uk/Tools/services/web_iprscan/toolform.ebi',
'Content-Type' => 'multipart/form-data', #表示类型为 multipart/form-data