in reply to Re: Error 500 in LWP
in thread Error 500 in LWP
it returns: 200,500,200use strict; use warnings; use LWP::UserAgent; my @hostnames = ( 'google.com', 'microsoft.com', 'bing.com' ); my $ua = LWP::UserAgent->new; for my $host (@hostnames) { # my $res = $ua->head ("https://$host/"); my $res = $ua->get ("http://$host/"); print $res->code . "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Error 500 in LWP
by Corion (Patriarch) on Aug 17, 2017 at 12:27 UTC | |
|
Re^3: Error 500 in LWP
by hippo (Archbishop) on Aug 17, 2017 at 12:42 UTC | |
by YarNik (Sexton) on Aug 17, 2017 at 12:54 UTC | |
by YarNik (Sexton) on Aug 18, 2017 at 09:31 UTC | |
by hippo (Archbishop) on Aug 18, 2017 at 10:11 UTC | |
by YarNik (Sexton) on Aug 19, 2017 at 08:52 UTC | |
by hippo (Archbishop) on Aug 19, 2017 at 09:12 UTC | |
|