This queue is for tickets about the HTTP-Cache-Transparent CPAN distribution.

Report information
The Basics
Id:
60345
Status:
new
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
njh [...] bandsman.co.uk
Cc:
AdminCc:

BugTracker
Severity:
Important
Broken in:
1.0
Fixed in:
(no value)



Subject: base not always set in HTTP::Response
Try this sample program with and without HTTP::Cache::Transparent - you get different results. webdoc->base isn't set with transparent enabled, without it, it *is* set. njh@philips:~/spider/cgi-bin$ cat /tmp/bar #!/usr/bin/perl -w use strict; use warnings; use diagnostics; use LWP; use HTTP::Cache::Transparent; HTTP::Cache::Transparent::init( { BasePath => '/tmp/fff', # Verbose => 1, NoUpdate => 60 * 60, MaxAge => 15 * 24} ) || die "search/cache: $!"; my $lwp = LWP::UserAgent->new(); $lwp->timeout(20); my $request = new HTTP::Request 'GET' => 'http://www.sldbrass.com/'; # webdoc is of type HTTP::Response my $webdoc = $lwp->simple_request($request); unless($webdoc->base) { die "webdoc->base is not set\n"; } njh@philips:~/spider/cgi-bin$ /tmp/bar Uncaught exception from user code: webdoc->base is not set at /tmp/bar line 24 njh@philips:~/spider/cgi-bin$


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.