Help for this page

Select Code to Download


  1. or download this
    if(($ua->request(HTTP::Request->new('HEAD', $url)))->is_success())
    
  2. or download this
    my $response = $ua->request(HTTP::Request->new('HEAD', $url));
    if ($response->code == 200) {
    ...
    } else {
        # there's something odd with the URL
    }