9

Debian Wheezy (perl 5.14)

Work nice:

use LWP::Simple;
print get( 'http://ip6-localhost:80' );

Not working (1)

use LWP::Simple;
print get( 'http://[::1]:80' );

Not working (2) [Return: Bad hostname]

use LWP::Simple;
$ua = new LWP::UserAgent();
my $req = new HTTP::Request("GET", "http://[::1]/");
my $res = $ua->request($req);

Not working (3) [Return: Connection refused]

use Net::INET6Glue::INET_is_INET6;
use LWP::Simple;
$ua = new LWP::UserAgent();
my $req = new HTTP::Request("GET", "http://[::1]/");
my $res = $ua->request($req);

Why I need it? Because ldirectord need it. :( Any suggestion?

4
  • 3
    This looks more like a bug report or feature request. Have you tried raising it with the CPAN distributions in question?
    – LeoNerd
    Commented Jun 19, 2012 at 13:08
  • I don't try report on CPAN, because my understanding of where(library/module/libc/..) is problem is low. :( But, i will try it. Wait moment. First step : install last version(5.16). Commented Jun 20, 2012 at 6:06
  • 2
    perlbug used and bug reported as high priority Commented Jun 20, 2012 at 6:32
  • Use the "Bugs" link on the CPAN page of the module concerned. For example search.cpan.org/~gaas/libwww-perl-6.04 points at rt.cpan.org/Dist/Display.html?Name=libwww-perl wherein you'll find a number of existing IPv6-related bugs already.
    – LeoNerd
    Commented Jun 20, 2012 at 11:54

1 Answer 1

1

Another post suggested using INET6Glue

use Net::INET6Glue::INET_is_INET6;
use LWP::Simple;
print get( 'http://[::1]:80' );
print get( 'http://ipv6.google.com' );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.