Checking if a Server can Resume Downloads

Use the RestSupport property to check if the server supports the REST (resume download) command.

Syntax

Boolean Object.RestSupport

Return values

-1

Server supports REST.

0

Server does not support REST.

Example

Set MySite = CreateObject("CuteFTPPro.TEConnection")

'Initialize all necessary fields for MySite : host name, user, password, etc.

If (not cbool(MySite.RestSupport)) Then

MsgBox "This server doesn't support the REST command"

End if