Hi folks,
Maybe I'm missing something. I want to get progress information from a rather
large download from an HTTP server. This is what I'm doing:
command downloadFile
set the cursor to watch
put "http://server.com/data/myfile.gz" into tRemote_GZ
put "/path/to/file/pwr_complete.gz" into tLocal_GZ
put url tRemote_GZ into url ("binfile:" & tLocal_GZ)
end downloadFile
on urlProgress pURL, pStatus, pMessage, pBytesTotal
put "Downloading " & pURL & cr & "Status: " & pStatus && pMessage && "of
TotalBytes: " & pBytesTotal \
into fld "prog"
end urlProgress
Nothing ever shows up in field "prog", but the download eventually succeeds. I
can see the file on my hard drive after it has downloaded.
Am I doing something wrong? I'm on OS X 10.7.x and LC 6.0.2.
Devin
Devin Asay
Humanities Technology and Research Support Center
Brigham Young University
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode