W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2000

Re: Downloading with the ROBOT

From: Amir Khassaia <AKhassaia@vet.com.au>
Date: Tue, 18 Jan 2000 18:46:14 -0500 (EST)
Message-ID: <3884ECC1.D7173389@vet.com.au>
To: www-lib@w3.org
It is better to stay away from changing functions marked as PRIVATE as
changing them may change the behavior of the whole robot (speaking from
personal experience).
I am involved in a similiar task with the robot, and the way you can set it
out is
to register an afterfilter for status HT_OK/HT_LOADED ( you can see  how it's
done  in main() of the webbot ) then the afterfilter will eventually get
called for every request that it's registered for (eg HT_OK), via foundlink
and foundanchor functions.
Inside the filter you can do whatever you want with the request, eg save the
So put LoadToFile call there, mind however that the call will indirectly call
your filter
in the future as it creates a request that will have  HT_OK status, so some
code to handle that is required.

As a good starting point use  HTRedirectFilter which you can find in


and which is registered in HTAfterInit in


Best of luck.
Received on Tuesday, 18 January 2000 20:12:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:52 UTC