- 论坛徽章:
- 0
|
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
'Content' =>[
'tool' => 'iprscan',
'sequence' => $protein,
'upfile'=>'',
'appl' => 'blastprodom',
'appl' => '',
'appl' => '',
'appl' => '',
'appl' => '',
'appl' => '',
'appl' => '',
'appl' => '',
'appl' => '',
'appl' => 'superfamily',
'appl' => '',
'appl' => '',
'appl' => '',
'appl' => '',
'email'=>'',
'title'=>'',
],
'submit' => 'Submit',
);
print WF $response->content; # 输出返回的网页内容
close(WF);
修改了代码,但还不行,跪拜高手指点,非常感激! |
|