The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::LargeFileFetcher - a module used to fetch large files from internet.

VERSION

Version 0.02

SYNOPSIS

    use WWW::LargeFileFetcher;

    my $fetcher = WWW::LargeFileFetcher->new();
    $fetcher->get('http://www.example.com/video.rm', 'video.rm');

DESCRIPTION

    C<WWW::LargeFileFetcher> is used to fetch large files (like
    videos, audios) from internet.

METHODS

$fetcher = WWW::LargeFileFetcher->new(%opinions);

The opinions hash can be: agent=>'the agent string', timeout=>time in seconds, proxy=>'http proxy to be used'

$fetcher->get($url,$filename);

The return value can be: 1 : success -1 : IO error -2 : internet access error

The detailed error string can be accessed from $fetcher->err_str();

$fetcher->test($url);

This method is used to test whether the $url is downloadable.

$fetcher->err_str();

Return the detail description of the error occured.

AUTHOR

Zhang Jun, <jzhang533 at gmail.com>

COPYRIGHT & LICENSE

Copyright 2007 Zhang Jun, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.