jmyepes at mac.com
Tue Feb 10 00:35:54 EST 2009
I get socket timeout error, I put the libURLSetFTPStopTime 30 but nothing,
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-tp21925626p21928053.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the Use-livecode