Hi,
The following code get a 500 error:
500 Can't connect to (connect: Connection refused). Do I need to have connection permission before using LWP or need to use different port number?
Thanks,
The following code get a 500 error:
500 Can't connect to (connect: Connection refused). Do I need to have connection permission before using LWP or need to use different port number?
Thanks,
Code:
my $ua = new LWP::UserAgent;
$ua->agent("hcat/1.0");
my $request = new HTTP::Request("GET", "[URL unfurl="true"]http://www.yahoo.com");[/URL]
my $response = $ua->request($request);
if ($response->is_success) {
print $response->content;
}
else
{
print $response->status_line, "\n";
}