#!/usr/bin/perl use strict; use warnings; use HTTP::Response; use LWP::UserAgent; my $ua = LWP::UserAgent->new; my $res = $ua->get('http://www.perlmonks.com'); if ($res->is_success){ print $res->decoded_content; } else { print "Error: " . $res->status_line . "\n"; }
In reply to Re: LWP error 500 timeout
by Khen1950fx
in thread LWP error 500 timeout
by perlmonkdr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |