in reply to Re: 500 Can't connect to localhost:80 (Connection Refused) at ./sample.pl line 19
in thread 500 Can't connect to localhost:80 (Connection Refused) at ./sample.pl line 19
decoded-content and status-line are provided by LWP::UserAgent. The program is working fine with IPv4 address
but lets just keep it aside and if I want to run the program with the following code also it is failing.
use FindBin ;
use lib $FindBin::Bin ;
#Send a get request to the above URL.
$ua = LWP::UserAgent->new;
$response = $ua->get($urlString);
print "Fialed to connect to the URL $urlString \n";
If I am using the URL provided in the program using mozilla firefox I am able to see the page. But the response of the same is not coming as "is_success" in the program
Can anyone please help me to get a program to connect to the url containing IPv6 address in it