jmyepes at mac.com
Tue Feb 10 02:38:00 EST 2009
Solved. The socket timeout was the problem, I put a more big value and now
is running and downloading.
About your code:
on downloadDone pURL, pURLStatus
-- show completion message
put "Download complete: " & pURLStatus
How pass or obtain the pURLStatus?
put the urlstatus of "ftp://.." into pURLStatus ? for example, but where is
the best handler to put?
Sarah Reichelt-2 wrote:
>> I'm trying to download a PDF file from one ftp site, but only obtain an
>> error. Why? The file is about 1Mb aprox. Trying these URL directly in the
>> browser the PDF is downloaded perfectly.
>> I use this piece of code:
>> on mouseUp
>> libURLDownloadToFile \
>> end mouseUp
>> on status
>> put the urlstatus of
>> into field fStatus
>> end status
>> Nothing. What I doing wrong? I need download every day a PDF file from
>> ftp and upload to another, and save a copy of the PDF in the local hard
> What error do you get?
> One useful debugging tool is to create a scrolling field (called "Log"
> in the example below) and use it to show the FTP log.
> libURLSetLogField the long name of fld "Log" -- starts logging
> libURLSetLogField "" -- stops logging
> Here is a general FTP download script:
> libURLDownloadToFile tURL, tSaveName, downloadDone
> -- tURL = full FTP path
> -- tSaveName is the full file path for the downloaded file to be saved
> -- downloadDone is the name of the handle to be called when the
> download is finished
> -- this callback handler is only used when the download has finished
> on downloadDone pURL, pURLStatus
> -- show completion message
> put "Download complete: " & pURLStatus
> end downloadDone
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
View this message in context: http://www.nabble.com/FTP-Download-tp21925626p21929018.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the Use-livecode