231312111 发表于 2016-12-12 12:56:00

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]
查看完整版本: Perl POST请求发送