Subject: | CONNECT request URL different in 6.05 and 6.08 |
Date: | Thu, 11 Sep 2014 11:26:49 +0100 |
To: | bug-libwww-perl [...] rt.cpan.org |
From: | James Thomas <james.thomas [...] linguamatics.com> |
_version_
Linux mephisto.linguamatics.com 2.6.18-308.1.1.el5xen #1 SMP Wed Mar 7
04:57:35 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
This is perl, v5.10.1 (*) built for x86_64-linux
_observed_
I have found that CONNECT requests are different depending on whether
libwww-perl 6.05 or libwww-perl 6.08 is used:
----
#!/usr/bin/env perl
use strict;
use Data::Dumper;
use LWP::UserAgent;
my $ua=LWP::UserAgent->new(keep_alive=>1);
my $request = HTTP::Request->new(CONNECT => "http://google.com:80/test");
my $response=$ua->request($request);
print Dumper $response;
----
And these are the requests submitted by them, captured with tcpdump and
viewed in wireshark. Note the different URL and the corresponding
different response.
I noticed this on local servers after a recent upgrade to 6.08 on one of
our clients. We have been running libwww-perl 6.02 and 5.833 locally for
a long time.
I note that there have been changes in an apparently related area in
https://github.com/libwww-perl/libwww-perl/commit/cb80c2ddb70dff2f892ade86d2aa5ce4939442f8
but I haven't attempted to debug it in detail.
_exhibits_
I'm attaching
* google_test.txt - console output for two runs of the given script
* http.pcap - the tcpdump capture for two runs of the given script
--
James Thomas
Linguamatics Ltd
324 Cambridge Science Park
Milton Road
Cambridge
CB4 0WG
UK
Tel: +44 1223 651910
Fax: +44 1223 654869
URL: http://www.linguamatics.com
Message body not shown because it is not plain text.
Message body is not shown because sender requested not to inline it.