+_______________________________________________________________________________
+2014-07-24 Release 6.08
+
+Mike Schilli (1):
+ Requiring Net::HTTP 6.07 to fix IPv6 support
+ (RT#75618 and https://github.com/libwww-perl/net-http/pull/10)
+
+Jason A Fesler (2):
+ When the hostname is an IPv6 literal, encapsulate it with [brackets]
+ before calling Net::HTTP [rt.cpan.org #29468]
+ Extra steps to make sure that the host address that has a ":" contains
+ only characters appropriate for an IPv6 address.
+
+John Wittkoski (1):
+ Fix doc typo for cookie_jar
+
_______________________________________________________________________________
2014-07-01 Release 6.07
-mschilli (5):
+Mike Schilli (5):
Removed Data::Dump references in test suite and dependency in Makefile.PL
Added MANIFEST.SKIP to enable "make manifest".
release script now checks for MacOS to avoid incompatible tarballs
"LWP::MediaTypes" : "6",
"MIME::Base64" : "2.1",
"Net::FTP" : "2.58",
- "Net::HTTP" : "6.04",
+ "Net::HTTP" : "6.07",
"URI" : "1.10",
"URI::Escape" : "0",
"WWW::RobotRules" : "6",
},
"x_MailingList" : "mailto:libwww@perl.org"
},
- "version" : "6.07"
+ "version" : "6.08"
}
LWP::MediaTypes: '6'
MIME::Base64: '2.1'
Net::FTP: '2.58'
- Net::HTTP: '6.04'
+ Net::HTTP: '6.07'
URI: '1.10'
URI::Escape: '0'
WWW::RobotRules: '6'
resources:
MailingList: mailto:libwww@perl.org
repository: https://github.com/libwww-perl/libwww-perl
-version: '6.07'
+version: '6.08'
'LWP::MediaTypes' => 6,
'MIME::Base64' => "2.1",
'Net::FTP' => "2.58",
- 'Net::HTTP' => "6.04",
+ 'Net::HTTP' => "6.07",
'URI' => "1.10",
'URI::Escape' => 0,
'WWW::RobotRules' => 6,
package LWP;
-$VERSION = "6.07";
+$VERSION = "6.08";
sub Version { $VERSION; }
require 5.008;
{
my($self, $host, $port, $timeout) = @_;
+ # IPv6 literal IP address should be [bracketed] to remove
+ # ambiguity between ip address and port number.
+ # Extra cautious to ensure that $host is _just_ an IPv6 address
+ # (at least as best as we can tell).
+ if ( ($host =~ /:/) && ($host =~ /^[0-9a-f:.]+$/i) ) {
+ $host = "[$host]";
+ }
+
local($^W) = 0; # IO::Socket::INET can be noisy
my $sock = $self->socket_class->new(PeerAddr => $host,
PeerPort => $port,
=item $ua->cookie_jar( $cookie_jar_obj )
Get/set the cookie jar object to use. The only requirement is that
-the cookie jar object must implement the extract_cookies($request) and
-add_cookie_header($response) methods. These methods will then be
+the cookie jar object must implement the extract_cookies($response) and
+add_cookie_header($request) methods. These methods will then be
invoked by the user agent as requests are sent and responses are
received. Normally this will be a C<HTTP::Cookies> object or some
subclass.