Downloading files using load URL

Dave Cragg dcragg at lacscentre.co.uk
Tue Jun 18 10:43:01 CDT 2002


At 6:36 am -0300 18/6/02, John Rule wrote:
>   I haven't been able to figure out my problem with 'load URL', and I am
>sure it is something easy (but not easy enough apparently!). Whenever I load
>a URL to a cached URL, and then save the data to my hard drive, the file is
>somewhat corrupted. It is a zip file from a web-site, and I can double-click
>it to view the contents, but when I try to extract, I get the error that it
>is not a valid file...the details states that there is an extra 5k bytes of
>'stuff' that it doesn't like...what am I doing wrong?

How are you saving the data to the hard drive? You must save it as 
binary data and not text. For example:

put url "http://whatever" into url ("binfile:" & pathtofile)

Dave Cragg



More information about the use-livecode mailing list