in reply to Re^2: UrlDownloadToFile function
in thread UrlDownloadToFile function

For that i needed urldownloadtofile().

Why? If you are already running a script that has just downloaded the "file", why can't you carry on with whatever the next part of the processing is in the same script?

If you are prepared to move to Perl you should take advantage of the move by thinking outside the constraints of the previous technology and really take advantage of Perl. It may help if you tell us about the larger task you are trying to perform so we can point you toward suitable tools from the Perl web toolkit.

True laziness is hard work

Replies are listed 'Best First'.
Re^4: UrlDownloadToFile function
by shayak (Acolyte) on Apr 06, 2011 at 09:58 UTC
    ya i have a script that downloads a file. But i dont know the time i should wait for the download to complete. So i needed something which tells me that the file has finished downloading so that i can call another script for processing the file downloaded.
      If you use LWP::Simple's getstore as suggested, you don't have to wait. Or rather: when the function finally returns (it could take a while), the page is downloaded. Completely.
      A reply falls below the community's threshold of quality. You may see it by logging in.