[LWP] Problems with tests with libwww-perl-5b6

Milt Epstein (epstein@napcc-hp.cvm.uiuc.edu)
Wed, 15 Nov 1995 11:37:18 -0600


I recently picked up libwww-perl-5b6 and am trying to compile and
install it.  Everything compiled OK, but when I tried the tests ("make
test"), two of the net tests failed (mirror and proxy), and I wanted
to check here as to whether anyone had any suggestions as to what the
problems could be.  I've tried debugging the tests myself, but I've
kind of run into dead ends.

First of all, here's what I have in the net/config.pl file:

|package net;
|
|# Configure these for you local system
|$httpserver  = "napcc-hp.cvm.uiuc.edu";
|$cgidir      = "/cgi-bin/lwp";
|
|# Used for proxy test
|$ftp_proxy = "http://napcc-hp.cvm.uiuc.edu/";
|
|1;

The instructions weren't all that clear as to what values to put in
there, but this is what I ended up with.  It looks like $httpserver is
used in a few of the other net tests, so likely that is not a problem.
It looks like $ftp_proxy is only used in the proxy test, so it could
be that that is not set right.

The mirror test requests a URL and copies it to a file on disk.  It
then repeats the request, but this time it should return a "Not
Modified" due to the use of the "If-Modified-Since".  However, in our
case, it repeats the copy and returns "OK" (like it did on the first
request).

I'm not sure exactly what's going on in the proxy test, but it returns
a "404 Not Found".  When I run netscape or mosaic and make the same
ftp request, it works fine.

I'm also wondering whether the problems might be caused by some
limitations/problems with the http server we're using -- like perhaps
they don't have the working features to allow the above tests to work.
We're using NCSA http 1.4.2.  We just picked up 1.5.  I'm going to try
installing that, and see whether that makes a difference with regards
to these tests.

In the meantime, I'd appreciate any help/suggestions.  Thanks.

One other thing: I'm new to this list, so I don't want to make waves
(and perhaps this has been discussed before).  But on the other
mailing lists I'm on, they add a little tag (in square brackets) to
the subject lines to indicate that the message is from that particular
mailing list.  I find this very helpful.  So, I'd like to suggest
adding a tag like "[LWP]" to the beginning of subject lines sent out
to this list (like I've done with this message).

Milt Epstein
Visiting Research Programmer    National Animal Poison Control Center (NAPCC)
epstein@napcc-hp.cvm.uiuc.edu            College of Veterinary Medicine (CVM)
(or mepstein@uiuc.edu)      University of Illinois at Urbana-Champaign (UIUC)