my $response = $ua->get('http://servername:84/dir/AppPage.pl'); if($response->is_success){ }else{ die $response->status_line; }