Harvest::Reaper::Fetcher - fetch objects | |
| |
DESCRIPTION | |
The Currently this class is really just a wrapper around the LWP routines, using the Harvest::Reaper::HarvestUA class as a UserAgent. However, it could be extended to provide further fetch methods, not implemented within LWP.
| |
METHODS | |
| |
$fetcher=new Harvest::Reaper::Fetcher ($config); | |
Create a new instance of the Fetcher class. There should be only one instance of this class per Reaper process.
| |
$fetcher->fetch($obj,$file,$lmt) | |
Fetches the object defined in $obj, to the filename given by $file.
This routine will fetch the URL encapsulated in the Harvest::Object
The 'Harvest-Status' attribute of the header data is set to a value to indicate the success, or failure of the fetch. Currently the status can be one of the following:
| |
ACKNOWLEDGEMENTS | |
This class is currently implemented as a wrapper to the libwww-perl client routines, to whom it owes most of its functionality | |