On Tue Sep 30 04:38:36 2008, GAAS wrote:
Show quoted text> On Tue Sep 30 04:19:54 2008, TOMI wrote:
> > aaah, that's what it was. Thanks. Fixed in 1.82
>
> What was the problem. Did I break compatibility in a bad way?
>
$ perl -I/Users/tomi/Downloads/libwww-perl-5.814/lib/ test.pl
HTTP::Request is 5.814
LWP::UserAgent is 5.814
Got HTTP::Response=HASH(0x86ad2c): 400 URL must be absolute
$ perl -I/Users/tomi/Downloads/libwww-perl-5.816/lib/ test.pl
HTTP::Request is 5.815
LWP::UserAgent is 5.816
Bad request: URL must be absolute at test.pl line 13
$ cat test.pl
#!/usr/bin/perl
use warnings;
use strict;
use LWP::UserAgent;
use HTTP::Request;
print "HTTP::Request is $HTTP::Request::VERSION\n";
print "LWP::UserAgent is $LWP::UserAgent::VERSION\n";
my $req = HTTP::Request->new(GET => "foo");
my $ua = LWP::UserAgent->new();
my $response = $ua->request( $req );
print "Got $response: " . $response->content;
(hope rt doesn't eat my formatting here..)
One of my test cases was testing for failure by passing a nonsense string as an URL. I've
fixed it by just wrapping the call in an eval and throwing away errors (I handle most failure
cases in URI::Title by returning an empty string, rather than being helpful. I vaguely regret
this, but that's history for you).