Re: libwww-perl-5.00

Martijn Koster (m.koster@webcrawler.com)
Wed, 3 Jul 1996 16:32:48 -0700


At 9:20 PM 7/3/96, Gisle Aas wrote:

>The content() call does *not* do any HTML parsing.  HTML parsing takes
>place in the LWP::Protocol::collect() callback for the first few
>chunks received (as long as we are inside the <HEAD> section).

Oops, mistyped that. Yes, I went through what it did.

>Why do you want to swich it off in the first place?

First off I don't always want to believe HTTP-EQUIV values.

Also I may want to override the HeadParser to work differently (cope
with broken HTML for instance); then it seems wasteful to parse it
twice, and is more effort to figure out which http headers came from
http-equiv handling in collect().

Conceptually I dislike the protocol layer having to touch an HTTP
message body content, although in this instance it is practical to use...
Making it an option allows both feelings.


-- Martijn

Email: m.koster@webcrawler.com
WWW: http://info.webcrawler.com/mak/mak.html