Transferring from URLs (TransferURL)

Use the TransferURL method to download files directly from a Web address.

Syntax

Object.TransferURL(BSTR bstrRemoteName, long nMultipartNumber)

Parameters

bstrRemoteName

This is a string value for the URL for the file transfer such as: (ftp://ftp.globalscape.com/pub/cuteftp/cuteftp.exe).

nMultipartNumber

This is optional and will split a file into parts for transfer.  The default = 1.

Example

Set MySite = CreateObject("CuteFTPPro.TEConnection")

MySite.TransferURL "ftp://ftp.globalscape.com/pub/cuteftp/cuteftp.exe"

The TE recognizes these URL formats:

ftp://user:pass@ ftp.sitename.com:port

ftp://user:pass@ ftp.sitename.com

ftp://user@ ftp.sitename.com

ftp:// ftp.sitename.com:port

ftp:// ftp.sitename.com

ftp://ftp.sitename.com/pub l: user p: pass ß l: user is a lowercase "L", not "one"

ftp://ftp.sitename.com/pub:44 l: user p: pass

ftp://ftp.sitename.com/pub port:44 l: user p: pass

ftp://ftp.sitename.com/pub l/p: user/pass

ftp://ftp.sitename.com/pub:44 l/p: user/pass

ftp://ftp.sitename.com/pub p:44 l/p: user/pass

ftp://ftp.sitename.com/pub port:44 l/p: user/pass

ftp://ftp.sitename.com/pub l: user p: pass

ftp://ftp.sitename.com/pub:44 l: user p: pass

ftp://ftp.sitename.com/pub p:44 l: user p: pass

ftp://ftp.sitename.com/pub port:44 l: user p: pass