HEAD and GET fail on http://www.suck.com/suckreviews/nph-suckblast.cgi
Nelson Minar (nelson@santafe.edu)
Tue, 23 Apr 1996 02:47:26 -0600
(please include me in any replies - I'm not subscribed to the list yet.)
For Perl 5.002, libwww-perl-5b11, I get this error:
$ HEAD http://www.suck.com/suckreviews/nph-suckblast.cgi
Unable to determine scheme for '1' at /usr/local/lib/perl5/site_perl/auto/URI/URL/_generic/abs.al line 12
I confess I don't really understand what's going on here (I've been
hacking too long tonight.) That URL does a redirect to another URL,
but I can't determine why the redirect fails. That's the only URL I've
seen (so far) that causes a problem.
Btw, I just started playing with libwww-perl a couple of days ago.
Great stuff! I'm writing some code for agents that live in the Web,
this is a really nice basis for it.
Two other random questions:
Is there a way to only load the first, say, 4k of a document? I want
to try to make a quick guess as to what the content of a page is and
bail out after just a little bit of read. Is there a callback trick?
Dumb perl question - is there an easy way to remove duplicates in a list?