在书签上运行';链接检查';,共2个

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在书签上运行';链接检查';,共2个相关的知识,希望对你有一定的参考价值。

source for perl file that is step 2
  1. #!/usr/bin/perl
  2.  
  3. require LWP::Parallel::UserAgent;
  4. use HTTP::Request;
  5.  
  6. my $pua = LWP::Parallel::UserAgent->new();
  7. $pua->in_order (1); # handle requests in order of registration
  8. $pua->duplicates(0); # ignore duplicates
  9. $pua->timeout (8); # in seconds
  10. $pua->redirect (1); # follow redirects
  11. $pua->max_hosts(5); # sets maximum number of locations accessed in parallel
  12. $pua->max_req (5); # sets maximum number of parallel requests per host
  13.  
  14. my(@reqs) = <>; # read input file from step 1
  15.  
  16. foreach my $req (@reqs) {
  17. # print "Registering $req ";
  18. if ( my $res = $pua->register (HTTP::Request->new('GET', $req) ) ) {
  19. print STDERR $res->error_as_html;
  20. }
  21. }
  22. my $entries = $pua->wait();
  23.  
  24. foreach (keys %$entries) {
  25. my $res = $entries->{$_}->response;
  26. print "Answer for '",$res->request->url, "' was ", $res->code,": ",
  27. $res->message," ";
  28. }

以上是关于在书签上运行';链接检查';,共2个的主要内容,如果未能解决你的问题,请参考以下文章

039:cesium加载Natural Earth II地图

Woocommerce更改购物车页面上';继续购物';按钮的链接目的地

Gmail今日未读邮件书签

在所有IMAP文件夹上运行Archivemail。

插入';打印';页面链接

查找页面上的所有链接