libURLDownloadToFile noob problem

Josh Mellicker josh at dvcreators.net
Thu Jun 8 22:18:32 EDT 2006


I have never used libURLDownloadToFile, my first attempt was  
unsuccessful :(

----

My code:


ON mouseUp

     libURLSetFTPMode "passive" -- I tried "active" also
     answer folder "where?"
     libURLDownloadToFile "ftp://user:password@revcoders.org/ 
mim.txt", it

END mouseUp


----

When I do this:

   on myProgress theURL,theStatus
     put theStatus into fld "status"
     put cr & libURLErrorData(theURL) into fld "status"
   end myProgress


My status field reads:

error   socket not open

----

Do I have to open a socket specially for a libURLDownloadToFile  
operation?



More information about the use-livecode mailing list