Bug in applet handling? (LWP 5.32)
Petter Reinholdtsen (pere@td.org.uit.no)
Wed, 22 Apr 1998 16:35:09 +0200
When HTML::LinkExtor extracts the link for the applet code, it doesn't
use the codebase. Eks:
applet code http://www.games.no/snakk/IRC.class
codebase http://www.games.no/chat/InReachChat/
The code should have been "http://www.games.no/chat/InReachChat/IRC.class".
I use the following program, based on the manual page of
HTML::LinkExtor and LWP::UserAgent to test it.
require HTML::LinkExtor;
require LWP::UserAgent;
$url = "http://www.games.no/snakk/";
$ua = new LWP::UserAgent;
$request = new HTTP::Request('GET', $url);
$response = $ua->request($request, "index.html");
$p = HTML::LinkExtor->new(\&cb, $url);
sub cb {
my($tag, %links) = @_;
print "$tag @{[%links]}\n";
}
$p->parse_file("index.html");
unlink "index.html";
This must be a bug in HTML::LinkExtor. This makes checkbot fail on
the given page.
--
##> Petter Reinholdtsen <## | pere@td.org.uit.no
O- <SCRIPT Language="Javascript">window.close()</SCRIPT>
http://www.hungry.com/~pere/ | Go Mozilla, go! Go!