Re: Download files from the web [message #86939 is a reply to message #86938] |
Mon, 16 December 2013 05:29   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Mats Löfdahl writes:
> I'm not sure if you mean I should use it locally after downloading to see if the file was downloaded or remotely to see if the file is there before I try to download it.
>
> If the locally, it would find *a* file also if that file is only partially downloaded or if it is a 404 error html file.
>
> If the remotely, I guess it is nice to know that the file exists on the server but that does not guarantee that I will be able to download it. And, although I see there is a SOCKET keyword that I didn't know about, I still don't know how to specify the remote file with the socket command.
I meant after the file was downloaded to tell if it was there, was the
right size, etc. But, I think Helder's suggestion to use the
functionality of the IDLnetURL object is likely to be more useful.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|