develooper Front page | perl.libwww | Postings from November 2001

libwww-perl-5.60 "error live/jigsaw-auth-d.t"

From:
Plato Smith
Date:
November 8, 2001 06:44
Subject:
libwww-perl-5.60 "error live/jigsaw-auth-d.t"
Message ID:
3BEA99E8.4F9F1168@ncsu.edu
Dear libwww@perl.org,

I had to browse the Net extensively to find zlib1.1.3 which is required
before installing Compress-Zlib1.14 which both are
needed to makeup Compress::Zlib which is required to fix
live/jigsaw-te........FAILED tests 2-4 errors in libwww-perl-5.60
compilation.

The other error live/jigsaw-auth-d.t  was bypassed when I chose [n] as
the option to perform a lwp-request test. I
looked into the live/jigsaw-auth-d.t script and noticed:
 cat jigsaw-auth-d.t
print "1..1\n";

use strict;
use LWP::UserAgent;

{
   package MyUA;
   use vars qw(@ISA);
   @ISA = qw(LWP::UserAgent);

   my @try = (['foo', 'bar'], ['', ''], ['guest', ''], ['guest',
'guest']);

   sub get_basic_credentials {
        my($self,$realm, $uri, $proxy) = @_;
        print "$realm/$uri/$proxy\n";
        my $p = shift @try;
        print join("/", @$p), "\n";
        return @$p;
   }

}

my $ua = MyUA->new(keep_alive => 1);

my $req = HTTP::Request->new(GET =>
"http://jigsaw.w3.org/HTTP/Digest/"); (requires authentication when I
visted
the URL in my browser)
my $res = $ua->request($req);

#print $res->as_string;

print "not " unless $res->content =~ /Your browser made it!/ &&
                    $res->header("Client-Request-Num") == 5;
print "ok 1\n";

How can I resolve the failed test for error live/jigsaw-auth-d.t  when
compiling libwww-perl-5.60?

Thanks.

--Plato

P.S. Excuse my ignorance but I am new to perl and am learning as I
troubleshoot! All of this is new to me. Thanks again!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Plato L. Smith II  ~ NCSU Libraries Fellow
North Carolina State University Libraries
D. H. Hill Library ~ Raleigh, NC 27695
Email   ~ plato_smith@ncsu.edu
Offices ~ 919-515-1355 ~ 919-515-2830
Fax     ~ 919-513-3330
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About