sub MAIN($cmd) {
use HTTP::UserAgent;
my $r = HTTP::Request.new();
$r.uri: 'http://localhost/a.php';
$r.set-method: 'POST';
my $ua = HTTP::UserAgent.new;
$r.add-content("cmd=$cmd");
$r.header.field(:Content-Type<application/x-www-form-urlencoded>);
my $html = $ua.request($r);
say $r.Str;
say $html.content;
}

 相似文章:

https://www.cnblogs.com/perl6/p/9404952.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-05
  • 2021-03-30
  • 2022-01-13
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
相关资源
相似解决方案