Re: Downloading with the ROBOT

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
file.
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

    http://www.w3.org/Library/src/HTFilter.c

and which is registered in HTAfterInit in

    http://www.w3.org/Library/src/HTInit.c

Best of luck.

Received on Tuesday, 18 January 2000 20:12:24 UTC