Perl POST请求发送
使用Perl进行POST访问的经典方法。1
2
3
4
5
6
7
use strict;
use LWP;
my $browser = LWP::UserAgent->new();
my $response= $browser->post("http://localhost/test.php?action=search", [ "keyword" => $a]);
my $result = $response->content;
print $result;
页:
[1]