my $ua = LWP::UserAgent->new(); $ua->ssl_opts( timeout => 5 );