Bug#714961: LWP::UserAgent: Bad http proxy specification 'http://[IPv6]...'
Ivan Shmakov
oneingray at gmail.com
Thu Jul 4 18:41:01 UTC 2013
Package: libwww-perl
Version: 6.04-1
Tags: ipv6, patch
The current version of LWP::UserAgent apparently dislikes IPv6
addresses given for proxies. Consider, e. g.:
$ http_proxy=http://\[2001:db8::1\]:3128/ perl -e '
use strict;
use warnings;
require LWP::UserAgent;
my $ua = LWP::UserAgent->new ();
$ua->env_proxy ();
my $r = $ua->get ("http://www.example.org/");
warn ($r->status_line ());
die () unless ($r->is_success ());'
Bad http proxy specification 'http://[2001:db8::1]:3128/' at -e line 1
$
The patch hereby suggested turns it into:
200 OK at -e line 1.
(provided that an IPv6 address of an active HTTP proxy is
given.)
TIA.
--
FSF associate member #7257
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-diff
Size: 726 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20130704/9bd6a4e7/attachment-0001.diff>
More information about the pkg-perl-maintainers
mailing list