in reply to Question about downloading a pdf file

Thanks a lot. I also found mirror function in Perl Cookbook. Here I have a concern. Since I want to download huge number of files, will the mirror function be a little bit slow? Is there a faster way to do it? Xuehua
  • Comment on Re: Question about downloading a pdf file

Replies are listed 'Best First'.
Re: Re: Question about downloading a pdf file
by tachyon (Chancellor) on Sep 27, 2003 at 09:55 UTC

    The bottleneck is the bandwidth between your site and the target, NOT the code that does the download which is essentially just setting up a socket, sending a GET /publications/some.pdf HTTP/1.1 line and then grabbing the results off the socket. It will make no real speed difference what you use. But as noted I would tend just to use wget unless I had specific reasons to do it in Perl.

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print